diff options
Diffstat (limited to 'test/data/constants.ll')
-rw-r--r-- | test/data/constants.ll | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/data/constants.ll b/test/data/constants.ll new file mode 100644 index 0000000..bc517ad --- /dev/null +++ b/test/data/constants.ll @@ -0,0 +1,13 @@ +define i64 @foo() { +entry: + %x = alloca i64, align 8 + store i64 42, ptr %x, align 8 + %load = load i64, ptr %x, align 8 + %add = add i64 %load, 84 + ret i64 %add +} + +define i64 @bar() { +entry: + ret i64 43 +} |