Test case for fp logical instructions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56474 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Evan Cheng 2008-09-22 22:19:34 +00:00
parent e04cec0ecf
commit bc09afa80e

View File

@ -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;
}