1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00
llvm-mirror/test/CodeGen/Thumb2/sign_extend_inreg.ll
Rafael Espindola d7a63bead9 Remove arm_apcscc from the test files. It is the default and doing this
matches what llvm-gcc and clang now produce.

llvm-svn: 106221
2010-06-17 15:18:27 +00:00

23 lines
467 B
LLVM

; RUN: llc < %s -mcpu=cortex-a8 | FileCheck %s -check-prefix=CHECK-A8
; RUN: llc < %s -mcpu=cortex-m3 | FileCheck %s -check-prefix=CHECK-M3
target triple = "thumbv7-apple-darwin10"
define i32 @f1(i16* %ptr) nounwind {
; CHECK-A8: f1
; CHECK-A8: sxth
; CHECK-M3: f1
; CHECK-M3-NOT: sxth
; CHECK-M3: bx lr
%1 = load i16* %ptr
%2 = icmp eq i16 %1, 1
%3 = sext i16 %1 to i32
br i1 %2, label %.next, label %.exit
.next:
br label %.exit
.exit:
ret i32 %3
}