diff options
author | Dan Gohman <gohman@apple.com> | 2008-09-16 01:01:33 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-09-16 01:01:33 +0000 |
commit | fb2bbbe78674a34e5ec2ec6f8c566ac5cbb26154 (patch) | |
tree | 30278a94df97afab20e1f49d4aaa14d93c4127c1 /test/Assembler/vector-select.ll | |
parent | fd6edef87b66c1c9bdef1ac562e13e59b9cd851a (diff) |
Re-enables the new vector select in the bitcode reader, by modifying the
bitcode reader/writer as follows:
- add and use new bitcode FUNC_CODE_INST_VSELECT to handle the llvm
select opcode using either i1 or [N x i1] as the selector.
- retain old BITCODE FUNC_CODE_INST_SELECT in the bitcode reader to
handle select on i1 for backwards compatibility with existing bitcode
files.
- re-enable the vector-select.ll test program.
Also, rename the recently added bitcode opcode FUNC_CODE_INST_VCMP to
FUNC_CODE_INST_CMP2 and make the bitcode writer use it to handle
fcmp/icmp on scalars or vectors. In the bitcode writer, use
FUNC_CODE_INST_CMP for vfcmp/vicmp only. In the bitcode reader, have
FUNC_CODE_INST_CMP handle icmp/fcmp returning bool, for backwards
compatibility with existing bitcode files.
Patch by Preston Gurd!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56233 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Assembler/vector-select.ll')
-rw-r--r-- | test/Assembler/vector-select.ll | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/test/Assembler/vector-select.ll b/test/Assembler/vector-select.ll index 7c76a8678d..87af602aaf 100644 --- a/test/Assembler/vector-select.ll +++ b/test/Assembler/vector-select.ll @@ -1,5 +1,4 @@ ; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | grep select -; XFAIL: * ; rudimentary test of select on vectors returning vector of bool define <4 x i32> @foo(<4 x i32> %a, <4 x i32> %b, |