diff options
Diffstat (limited to 'test/CodeGen/SystemZ/03-RetNegImmSubreg.ll')
-rw-r--r-- | test/CodeGen/SystemZ/03-RetNegImmSubreg.ll | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGen/SystemZ/03-RetNegImmSubreg.ll b/test/CodeGen/SystemZ/03-RetNegImmSubreg.ll new file mode 100644 index 0000000..87ebcc1 --- /dev/null +++ b/test/CodeGen/SystemZ/03-RetNegImmSubreg.ll @@ -0,0 +1,8 @@ +; RUN: llc < %s -march=systemz | grep lcr | count 1 + +define i32 @foo(i32 %a) { +entry: + %c = sub i32 0, %a + ret i32 %c +} + |