mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
33b04261ab
Replace the use of grep with FileCheck. Tidy up some of the tests. A few of the tests have been left as weak as previously, though some have been made more stringent. llvm-svn: 290616
22 lines
597 B
LLVM
22 lines
597 B
LLVM
; RUN: llc -mtriple arm-apple-darwin -filetype asm -o - %s | FileCheck -check-prefix CHECK-ARMv4 %s
|
|
; RUN: llc -mtriple armv7-apple-darwin -mcpu=cortex-a8 -filetype asm -o - %s | FileCheck -check-prefix CHECK-ARMv7 %s
|
|
|
|
define i32 @f7(float %a, float %b) {
|
|
entry:
|
|
%tmp = fcmp ueq float %a,%b
|
|
%retval = select i1 %tmp, i32 666, i32 42
|
|
ret i32 %retval
|
|
}
|
|
|
|
; CHECK-ARMv4-LABEL: f7:
|
|
; CHECK-ARMv4: moveq r6, #1
|
|
; CHECK-ARMv4: moveq r0, #42
|
|
|
|
; CHECK-ARMv7-LABEL: f7:
|
|
; CHECK-ARMv7: vcmpe.f32
|
|
; CHECK-ARMv7: vmrs APSR_nzcv, fpscr
|
|
; CHECK-ARMv7: movweq
|
|
; CHECK-ARMv7-NOT: vmrs
|
|
; CHECK-ARMv7: movwvs
|
|
|