projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e04cec0
)
Test case for fp logical instructions.
author
Evan Cheng
<evan.cheng@apple.com>
Mon, 22 Sep 2008 22:19:34 +0000
(22:19 +0000)
committer
Evan Cheng
<evan.cheng@apple.com>
Mon, 22 Sep 2008 22:19:34 +0000
(22:19 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56474
91177308
-0d34-0410-b5e6-
96231b3b80d8
test/FrontendC/fp-logical.c
[new file with mode: 0644]
patch
|
blob
diff --git a/test/FrontendC/fp-logical.c
b/test/FrontendC/fp-logical.c
new file mode 100644
(file)
index 0000000..
518db65
--- /dev/null
+++ b/
test/FrontendC/fp-logical.c
@@ -0,0
+1,9
@@
+// RUN: %llvmgcc %s -S -o - | grep bitcast | count 5
+
+typedef float vFloat __attribute__ ((__vector_size__ (16)));
+typedef unsigned int vUInt32 __attribute__ ((__vector_size__ (16)));
+void foo(vFloat *X) {
+ vFloat NoSignBit = (vFloat) ~ (vUInt32) (vFloat) { -0.f, -0.f, -0.f, -0.f };
+ vFloat ExtremeValue = *X & NoSignBit;
+ *X = ExtremeValue;
+}