diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-07-08 23:30:36 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-07-08 23:30:36 +0200 |
commit | 71fb62d896ac3d34d86636123470f09482821add (patch) | |
tree | b09f9027f3f52cda7ad11e029fa33c90b87d030b /test/data/constants.ll | |
parent | 81298346f1e512b0537a2063b390ebfc920c3f04 (diff) |
Add some basic LLVM IR tests
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 +} |