[llvm-branch-commits] [llvm] 3f1a86b - [ConstantFold] Add tests for vector bitcast of all ones (NFC)
Nikita Popov via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Fri Nov 3 13:41:00 PDT 2023
Author: Nikita Popov
Date: 2023-11-03T11:30:25+01:00
New Revision: 3f1a86bc27a587d3c56f966e51c2513a3a4f44b5
URL: https://github.com/llvm/llvm-project/commit/3f1a86bc27a587d3c56f966e51c2513a3a4f44b5
DIFF: https://github.com/llvm/llvm-project/commit/3f1a86bc27a587d3c56f966e51c2513a3a4f44b5.diff
LOG: [ConstantFold] Add tests for vector bitcast of all ones (NFC)
Added:
Modified:
llvm/test/Assembler/ConstantExprFold.ll
Removed:
################################################################################
diff --git a/llvm/test/Assembler/ConstantExprFold.ll b/llvm/test/Assembler/ConstantExprFold.ll
index b7e4075ea9e1ede..4ce44d2e55130df 100644
--- a/llvm/test/Assembler/ConstantExprFold.ll
+++ b/llvm/test/Assembler/ConstantExprFold.ll
@@ -31,6 +31,9 @@
@gep3 = global <2 x ptr> getelementptr(i8, <2 x ptr> zeroinitializer, <2 x i64> <i64 0, i64 0>)
@gep4 = global <2 x ptr> getelementptr({ i8 }, <2 x ptr> zeroinitializer, <2 x i64> <i64 0, i64 0>, <2 x i32> <i32 0, i32 0>)
+ at bitcast1 = global <2 x i32> bitcast (<4 x i16> <i16 -1, i16 -1, i16 -1, i16 -1> to <2 x i32>)
+ at bitcast2 = global <4 x i16> bitcast (<2 x i32> <i32 -1, i32 -1> to <4 x i16>)
+
; Need a function to make update_test_checks.py work.
;.
@@ -48,6 +51,8 @@
; CHECK: @[[GEP2:[a-zA-Z0-9_$"\\.-]+]] = global <2 x ptr> undef
; CHECK: @[[GEP3:[a-zA-Z0-9_$"\\.-]+]] = global <2 x ptr> zeroinitializer
; CHECK: @[[GEP4:[a-zA-Z0-9_$"\\.-]+]] = global <2 x ptr> zeroinitializer
+; CHECK: @[[BITCAST1:[a-zA-Z0-9_$"\\.-]+]] = global <2 x i32> <i32 -1, i32 -1>
+; CHECK: @[[BITCAST2:[a-zA-Z0-9_$"\\.-]+]] = global <4 x i16> <i16 -1, i16 -1, i16 -1, i16 -1>
;.
define void @dummy() {
; CHECK-LABEL: @dummy(
More information about the llvm-branch-commits
mailing list