diff options
Diffstat (limited to 'test/Bindings')
-rw-r--r-- | test/Bindings/llvm-c/echo.ll | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/test/Bindings/llvm-c/echo.ll b/test/Bindings/llvm-c/echo.ll index e75b5614e36..d6c27ea8f30 100644 --- a/test/Bindings/llvm-c/echo.ll +++ b/test/Bindings/llvm-c/echo.ll @@ -2,9 +2,19 @@ ; RUN: llvm-as < %s | llvm-c-test --echo > %t.echo ; RUN: diff -w %t.orig %t.echo +%S = type { i64, %S* } + +define { i64, %S* } @unpackrepack(%S %s) { + %1 = extractvalue %S %s, 0 + %2 = extractvalue %S %s, 1 + %3 = insertvalue { i64, %S* } undef, %S* %2, 1 + %4 = insertvalue { i64, %S* } %3, i64 %1, 0 + ret { i64, %S* } %4 +} + declare void @decl() -; TODO: label, struct and metadata types +; TODO: label and metadata types define void @types() { %1 = alloca half %2 = alloca float |