diff options
Diffstat (limited to 'llvm/test/CodeGen/AVR/neg.ll')
-rw-r--r-- | llvm/test/CodeGen/AVR/neg.ll | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/AVR/neg.ll b/llvm/test/CodeGen/AVR/neg.ll new file mode 100644 index 00000000000..edcce3409c2 --- /dev/null +++ b/llvm/test/CodeGen/AVR/neg.ll @@ -0,0 +1,8 @@ +; RUN: llc < %s -march=avr | FileCheck %s + +define i8 @neg8(i8 %x) { +; CHECK-LABEL: neg8: +; CHECK: neg r24 + %sub = sub i8 0, %x + ret i8 %sub +} |