mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
__builtin_isunordered test case.
llvm-svn: 33808
This commit is contained in:
parent
f71c710b17
commit
accef1b6a3
18
test/CodeGen/ARM/unord.ll
Normal file
18
test/CodeGen/ARM/unord.ll
Normal file
@ -0,0 +1,18 @@
|
||||
; RUN: llvm-as < %s | llc -march=arm &&
|
||||
; RUN: llvm-as < %s | llc -march=arm | grep bne | wc -l | grep 1 &&
|
||||
; RUN: llvm-as < %s | llc -march=arm | grep beq | wc -l | grep 1 &&
|
||||
; RUN: llvm-as < %s | llc -march=arm -enable-thumb &&
|
||||
; RUN: llvm-as < %s | llc -march=arm -enable-thumb | grep bne | wc -l | grep 1 &&
|
||||
; RUN: llvm-as < %s | llc -march=arm -enable-thumb | grep beq | wc -l | grep 1
|
||||
|
||||
define i32 @f1(float %X, float %Y) {
|
||||
%tmp = fcmp uno float %X, %Y
|
||||
%retval = select i1 %tmp, i32 1, i32 -1
|
||||
ret i32 %retval
|
||||
}
|
||||
|
||||
define i32 @f2(float %X, float %Y) {
|
||||
%tmp = fcmp ord float %X, %Y
|
||||
%retval = select i1 %tmp, i32 1, i32 -1
|
||||
ret i32 %retval
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user