summaryrefslogtreecommitdiffstats
path: root/llvm/test/FrontendC/2004-06-17-UnorderedBuiltins.c
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2008-05-29 19:17:15 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2008-05-29 19:17:15 +0000
commitd8734cf9162bc74b3c7603e4e81cb04a983bd444 (patch)
tree34399f40ef982abd2e6d99a134561e4a2c2be1e2 /llvm/test/FrontendC/2004-06-17-UnorderedBuiltins.c
parentd95dcd12c9413e6e4aea5cc63acbb0edeb5ac2da (diff)
downloadbcm5719-llvm-d8734cf9162bc74b3c7603e4e81cb04a983bd444.tar.gz
bcm5719-llvm-d8734cf9162bc74b3c7603e4e81cb04a983bd444.zip
For PR1338: Rename test dirs
llvm-svn: 51695
Diffstat (limited to 'llvm/test/FrontendC/2004-06-17-UnorderedBuiltins.c')
-rw-r--r--llvm/test/FrontendC/2004-06-17-UnorderedBuiltins.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/llvm/test/FrontendC/2004-06-17-UnorderedBuiltins.c b/llvm/test/FrontendC/2004-06-17-UnorderedBuiltins.c
new file mode 100644
index 00000000000..5e02e7f325a
--- /dev/null
+++ b/llvm/test/FrontendC/2004-06-17-UnorderedBuiltins.c
@@ -0,0 +1,24 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
+
+_Bool A, B, C, D, E, F, G, H;
+void TestF(float X, float Y) {
+ A = __builtin_isgreater(X, Y);
+ B = __builtin_isgreaterequal(X, Y);
+ C = __builtin_isless(X, Y);
+ D = __builtin_islessequal(X, Y);
+ E = __builtin_islessgreater(X, Y);
+ F = __builtin_isunordered(X, Y);
+ //G = __builtin_isordered(X, Y); // Our current snapshot of GCC doesn't include this builtin
+ H = __builtin_isunordered(X, Y);
+}
+void TestD(double X, double Y) {
+ A = __builtin_isgreater(X, Y);
+ B = __builtin_isgreaterequal(X, Y);
+ C = __builtin_isless(X, Y);
+ D = __builtin_islessequal(X, Y);
+ E = __builtin_islessgreater(X, Y);
+ F = __builtin_isunordered(X, Y);
+ //G = __builtin_isordered(X, Y); // Our current snapshot doesn't include this builtin. FIXME
+ H = __builtin_isunordered(X, Y);
+}
OpenPOWER on IntegriCloud