llvm-6502/test/CodeGen/SystemZ/03-RetNegImmSubreg.ll
Anton Korobeynikov cfca8b1f62 Add patterns for integer negate
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75980 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-16 14:06:27 +00:00

9 lines
137 B
LLVM

; RUN: llvm-as < %s | llc -march=systemz | grep lcr | count 1
define i32 @foo(i32 %a) {
entry:
%c = sub i32 0, %a
ret i32 %c
}