diff options
author | Dan Gohman <gohman@apple.com> | 2010-02-25 15:20:39 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-02-25 15:20:39 +0000 |
commit | aa9d854b334cab2f29ca6d95413a0946b8a38429 (patch) | |
tree | cea0953c05223188ec4fb31bfc0a915b83c2b5b1 /test/CodeGen | |
parent | 9a49f1552db7e2ce24a03ec068b17db8a238856d (diff) | |
download | external_llvm-aa9d854b334cab2f29ca6d95413a0946b8a38429.zip external_llvm-aa9d854b334cab2f29ca6d95413a0946b8a38429.tar.gz external_llvm-aa9d854b334cab2f29ca6d95413a0946b8a38429.tar.bz2 |
Revert r97064. Duncan pointed out that bitcasts are defined in
terms of store and load, which means bitcasting between scalar
integer and vector has endian-specific results, which undermines
this whole approach.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97137 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen')
-rw-r--r-- | test/CodeGen/X86/vector-of-i1.ll | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/test/CodeGen/X86/vector-of-i1.ll b/test/CodeGen/X86/vector-of-i1.ll deleted file mode 100644 index 7bbcf8d..0000000 --- a/test/CodeGen/X86/vector-of-i1.ll +++ /dev/null @@ -1,39 +0,0 @@ -; RUN: llc < %s -march=x86-64 | FileCheck %s - -; Vectors of i1 are stored with each element having a -; different address. Since the address unit on x86 is 8 bits, -; that means each i1 value takes 8 bits of storage. - -; CHECK: store: -; CHECK: movb $1, 7(%rdi) -; CHECK: movb $1, 6(%rdi) -; CHECK: movb $0, 5(%rdi) -; CHECK: movb $0, 4(%rdi) -; CHECK: movb $1, 3(%rdi) -; CHECK: movb $0, 2(%rdi) -; CHECK: movb $1, 1(%rdi) -; CHECK: movb $0, (%rdi) -define void @store(<8 x i1>* %p) nounwind { - store <8 x i1> <i1 0, i1 1, i1 0, i1 1, i1 0, i1 0, i1 1, i1 1>, <8 x i1>* %p - ret void -} - -; CHECK: variable_extract: -; CHECK: movb 7(%rdi), -; CHECK: movb 6(%rdi), -; CHECK: movb 5(%rdi), -define i32 @variable_extract(<8 x i1>* %p, i32 %n) nounwind { - %t = load <8 x i1>* %p - %s = extractelement <8 x i1> %t, i32 %n - %e = zext i1 %s to i32 - ret i32 %e -} - -; CHECK: constant_extract: -; CHECK: movzbl 3(%rdi), %eax -define i32 @constant_extract(<8 x i1>* %p, i32 %n) nounwind { - %t = load <8 x i1>* %p - %s = extractelement <8 x i1> %t, i32 3 - %e = zext i1 %s to i32 - ret i32 %e -} |