llvm-6502/test/CodeGen/SystemZ/02-RetNeg.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

7 lines
136 B
LLVM

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