Test case for fp logical instructions.
[oota-llvm.git] / test / FrontendC / fp-logical.c
1 // RUN: %llvmgcc %s -S -o - | grep bitcast | count 5
2
3 typedef float vFloat __attribute__ ((__vector_size__ (16)));
4 typedef unsigned int vUInt32 __attribute__ ((__vector_size__ (16)));
5 void foo(vFloat *X) {
6   vFloat NoSignBit = (vFloat) ~ (vUInt32) (vFloat) { -0.f, -0.f, -0.f, -0.f };
7   vFloat ExtremeValue = *X & NoSignBit;
8   *X = ExtremeValue;
9 }