mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-18 19:38:51 +00:00
Add a test to ensure that all-ones vectors are materialized with pcmpeqd.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48247 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c1f53c7426
commit
6a6d27ac0b
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…
x
Reference in New Issue
Block a user