mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-20 18:48:13 +00:00
Add a test to ensure that all-ones vectors are materialized with pcmpeqd.
llvm-svn: 48247
This commit is contained in:
parent
665363494f
commit
f9f25bd41b
14
test/CodeGen/X86/all-ones-vector.ll
Normal file
14
test/CodeGen/X86/all-ones-vector.ll
Normal file
@ -0,0 +1,14 @@
|
||||
; RUN: llvm-as < %s | llc -march=x86 | grep pcmpeqd | count 4
|
||||
|
||||
define <4 x i32> @ioo() {
|
||||
ret <4 x i32> <i32 -1, i32 -1, i32 -1, i32 -1>
|
||||
}
|
||||
define <2 x i64> @loo() {
|
||||
ret <2 x i64> <i64 -1, i64 -1>
|
||||
}
|
||||
define <2 x double> @doo() {
|
||||
ret <2 x double> <double 0xffffffffffffffff, double 0xffffffffffffffff>
|
||||
}
|
||||
define <4 x float> @foo() {
|
||||
ret <4 x float> <float 0xffffffffe0000000, float 0xffffffffe0000000, float 0xffffffffe0000000, float 0xffffffffe0000000>
|
||||
}
|
Loading…
Reference in New Issue
Block a user