[llvm-commits] [llvm] r56534 - /llvm/trunk/test/FrontendC/fp-logical.c

Evan Cheng evan.cheng at apple.com
Tue Sep 23 17:50:16 PDT 2008


Author: evancheng
Date: Tue Sep 23 19:50:16 2008
New Revision: 56534

URL: http://llvm.org/viewvc/llvm-project?rev=56534&view=rev
Log:
Test fp not.

Modified:
    llvm/trunk/test/FrontendC/fp-logical.c

Modified: llvm/trunk/test/FrontendC/fp-logical.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/fp-logical.c?rev=56534&r1=56533&r2=56534&view=diff

==============================================================================
--- llvm/trunk/test/FrontendC/fp-logical.c (original)
+++ llvm/trunk/test/FrontendC/fp-logical.c Tue Sep 23 19:50:16 2008
@@ -1,4 +1,4 @@
-// RUN: %llvmgcc %s -S -o - | grep bitcast | count 5
+// RUN: %llvmgcc %s -S -o - | grep bitcast | count 14
 
 typedef float vFloat __attribute__ ((__vector_size__ (16)));
 typedef unsigned int vUInt32 __attribute__ ((__vector_size__ (16)));
@@ -7,3 +7,9 @@
   vFloat ExtremeValue = *X & NoSignBit;
   *X = ExtremeValue;
 }
+
+void bar(vFloat *X) {
+  vFloat NoSignBit = (vFloat) ~ (vUInt32) (vFloat) { -0.f, -0.f, -0.f, -0.f };
+  vFloat ExtremeValue = *X & ~NoSignBit;
+  *X = ExtremeValue;
+}





More information about the llvm-commits mailing list