mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-13 14:47:00 +00:00
03304fa3e3
Since the behaviour is now different between Darwin and non-Darwin, more triples are needed :-/ git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@261238 91177308-0d34-0410-b5e6-96231b3b80d8
22 lines
463 B
LLVM
22 lines
463 B
LLVM
; RUN: llc < %s -mtriple=i686-unknown-linux-gnu | FileCheck %s
|
|
|
|
define signext i16 @foo(i16 signext %x) nounwind {
|
|
entry:
|
|
; CHECK-LABEL: foo:
|
|
; CHECK: movzwl 4(%esp), %eax
|
|
; CHECK-NEXT: xorl $21998, %eax
|
|
; CHECK-NEXT: retl
|
|
%0 = xor i16 %x, 21998
|
|
ret i16 %0
|
|
}
|
|
|
|
define signext i16 @bar(i16 signext %x) nounwind {
|
|
entry:
|
|
; CHECK-LABEL: bar:
|
|
; CHECK: movzwl 4(%esp), %eax
|
|
; CHECK-NEXT: xorl $54766, %eax
|
|
; CHECK-NEXT: retl
|
|
%0 = xor i16 %x, 54766
|
|
ret i16 %0
|
|
}
|