diff options
author | Craig Topper <craig.topper@intel.com> | 2018-06-21 23:39:47 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@intel.com> | 2018-06-21 23:39:47 +0000 |
commit | 342b095689e4a6ba61eb4fc03b1985c22989b00d (patch) | |
tree | 29aef0947bcc40f93772c7ed4f02f821ef355667 /clang/test/CodeGen/vector.c | |
parent | 3f1c6fe156a8a1a3b17d008014af8938657fe466 (diff) | |
download | bcm5719-llvm-342b095689e4a6ba61eb4fc03b1985c22989b00d.tar.gz bcm5719-llvm-342b095689e4a6ba61eb4fc03b1985c22989b00d.zip |
[X86] Update handling in CGBuiltin to be tolerant of out of range immediates.
D48464 contains changes that will loosen some of the range checks in SemaChecking to a DefaultError warning that can be disabled.
This patch adds explicit masking to avoid using the upper bits of immediates to gracefully handle the warning being disabled.
llvm-svn: 335308
Diffstat (limited to 'clang/test/CodeGen/vector.c')
-rw-r--r-- | clang/test/CodeGen/vector.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/CodeGen/vector.c b/clang/test/CodeGen/vector.c index 98dd82a28a0..c79cd84f7e2 100644 --- a/clang/test/CodeGen/vector.c +++ b/clang/test/CodeGen/vector.c @@ -45,13 +45,13 @@ int test4(int argc, char *argv[]) { unsigned long test_epi8(__m128i x) { return _mm_extract_epi8(x, 4); } // CHECK: @test_epi8 -// CHECK: extractelement <16 x i8> {{.*}}, i32 4 +// CHECK: extractelement <16 x i8> {{.*}}, {{i32|i64}} 4 // CHECK: zext i8 {{.*}} to i32 unsigned long test_epi16(__m128i x) { return _mm_extract_epi16(x, 3); } // CHECK: @test_epi16 -// CHECK: extractelement <8 x i16> {{.*}}, i32 3 +// CHECK: extractelement <8 x i16> {{.*}}, {{i32|i64}} 3 // CHECK: zext i16 {{.*}} to i32 void extractinttypes() { |