llvm-6502/test
Simon Pilgrim fa17ce8b6e [SelectionDAG] Fixed issue with uitofp vector constant folding being treated as sitofp
While the uitofp scalar constant folding treats an integer as an unsigned value (from lang ref):

%X = sitofp i8 -1 to double ; yields double:-1.0
%Y = uitofp i8 -1 to double ; yields double:255.0

The vector constant folding was always using sitofp:

%X = sitofp <2 x i8> <i8 -1, i8 -1> to <2 x double> ; yields <double -1.0, double -1.0>
%Y = uitofp <2 x i8> <i8 -1, i8 -1> to <2 x double> ; yields <double -1.0, double -1.0>

This patch fixes this so that the correct opcode is used for sitofp and uitofp.

%X = sitofp <2 x i8> <i8 -1, i8 -1> to <2 x double> ; yields <double -1.0, double -1.0>
%Y = uitofp <2 x i8> <i8 -1, i8 -1> to <2 x double> ; yields <double 255.0, double 255.0>

Differential Revision: http://reviews.llvm.org/D8560

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233033 91177308-0d34-0410-b5e6-96231b3b80d8
2015-03-23 22:44:55 +00:00
..
Analysis When simplifying a SCEV truncate by distributing, consider it a simplification to replace a cast, even if we end up with a trunc around the term. Fixes PR22960! 2015-03-20 02:25:00 +00:00
Assembler Prevent CHECK-NOTs from matching file paths 2015-03-22 15:58:21 +00:00
Bindings
Bitcode Add testing for mismatched explicit type on a gep operator when loading from bitcode 2015-03-16 22:03:50 +00:00
BugPoint Bugpoint: Fix invalid 'inlinedAt:' references in testcase 2015-03-20 19:51:34 +00:00
CodeGen [SelectionDAG] Fixed issue with uitofp vector constant folding being treated as sitofp 2015-03-23 22:44:55 +00:00
DebugInfo Refactor how passes get a symbol at the end of a section. 2015-03-23 21:22:04 +00:00
ExecutionEngine [Orc] Add missing -use-orcmcjit flag to a number of Orc regression tests. 2015-03-23 06:02:49 +00:00
Feature Rewrite test/Feature/md_on_instruction.ll 2015-03-20 18:34:53 +00:00
FileCheck
Instrumentation [sanitizer] experimental tracing for cmp instructions 2015-03-21 01:29:36 +00:00
Integer
JitListener
Linker
LTO libLTO, llvm-lto, gold: Introduce flag for controlling optimization level. 2015-03-19 22:01:00 +00:00
MC Reorganize the x86 ELF relocation selection logic. 2015-03-20 19:48:54 +00:00
Object
Other
SymbolRewriter
TableGen
tools test: Make a start on a test suite for libLTO. 2015-03-19 23:55:38 +00:00
Transforms DebugInfo: Overload get() in DIDescriptor subclasses 2015-03-23 21:54:07 +00:00
Unit
Verifier Verifier: Check that !dbg attachments have the right type 2015-03-20 19:26:58 +00:00
YAMLParser
.clang-format
CMakeLists.txt test: Make a start on a test suite for libLTO. 2015-03-19 23:55:38 +00:00
lit.cfg Tell lit.cfg about more Windows triples. 2015-03-20 22:08:40 +00:00
lit.site.cfg.in test: Make a start on a test suite for libLTO. 2015-03-19 23:55:38 +00:00
Makefile test: Make a start on a test suite for libLTO. 2015-03-19 23:55:38 +00:00
Makefile.tests
TestRunner.sh