[llvm-commits] [dragonegg] r171658 - in /dragonegg/trunk/test/validator/c: rdrand-builtins-64.c rdrand-builtins.c
Duncan Sands
baldrick at free.fr
Sun Jan 6 08:55:55 PST 2013
Author: baldrick
Date: Sun Jan 6 10:55:54 2013
New Revision: 171658
URL: http://llvm.org/viewvc/llvm-project?rev=171658&view=rev
Log:
The 64 bit builtin is not available on 32 bit platforms, adjust the test.
Added:
dragonegg/trunk/test/validator/c/rdrand-builtins-64.c
Modified:
dragonegg/trunk/test/validator/c/rdrand-builtins.c
Added: dragonegg/trunk/test/validator/c/rdrand-builtins-64.c
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/validator/c/rdrand-builtins-64.c?rev=171658&view=auto
==============================================================================
--- dragonegg/trunk/test/validator/c/rdrand-builtins-64.c (added)
+++ dragonegg/trunk/test/validator/c/rdrand-builtins-64.c Sun Jan 6 10:55:54 2013
@@ -0,0 +1,11 @@
+// RUN: %dragonegg -S %s -o - -mrdrnd | FileCheck %s
+// XFAIL: gcc-4.5, i386, i486, i586, i686
+
+#include <immintrin.h>
+
+int rdrand64(unsigned long long *p) {
+ return _rdrand64_step(p);
+// CHECK: @rdrand64
+// CHECK: call { i64, i32 } @llvm.x86.rdrand.64
+// CHECK: store i64
+}
Modified: dragonegg/trunk/test/validator/c/rdrand-builtins.c
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/validator/c/rdrand-builtins.c?rev=171658&r1=171657&r2=171658&view=diff
==============================================================================
--- dragonegg/trunk/test/validator/c/rdrand-builtins.c (original)
+++ dragonegg/trunk/test/validator/c/rdrand-builtins.c Sun Jan 6 10:55:54 2013
@@ -16,10 +16,3 @@
// CHECK: call { i32, i32 } @llvm.x86.rdrand.32
// CHECK: store i32
}
-
-int rdrand64(unsigned long long *p) {
- return _rdrand64_step(p);
-// CHECK: @rdrand64
-// CHECK: call { i64, i32 } @llvm.x86.rdrand.64
-// CHECK: store i64
-}
More information about the llvm-commits
mailing list