[llvm] 273b0d7 - Revert "[InstCombine] Update assertions in InstCombine test; NFC"
Daan Sprenkels via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 30 13:41:39 PDT 2020
Author: Daan Sprenkels
Date: 2020-03-30T22:41:33+02:00
New Revision: 273b0d776605b1ece53844487b6f2bde1953b1b5
URL: https://github.com/llvm/llvm-project/commit/273b0d776605b1ece53844487b6f2bde1953b1b5
DIFF: https://github.com/llvm/llvm-project/commit/273b0d776605b1ece53844487b6f2bde1953b1b5.diff
LOG: Revert "[InstCombine] Update assertions in InstCombine test; NFC"
This reverts commit 4243bd494d67b0a8048ee9719e27778a3743838a.
Added:
Modified:
llvm/test/Transforms/InstCombine/ExtractCast.ll
Removed:
################################################################################
diff --git a/llvm/test/Transforms/InstCombine/ExtractCast.ll b/llvm/test/Transforms/InstCombine/ExtractCast.ll
index 991560de709a..9a8872f2fb1f 100644
--- a/llvm/test/Transforms/InstCombine/ExtractCast.ll
+++ b/llvm/test/Transforms/InstCombine/ExtractCast.ll
@@ -1,32 +1,27 @@
-; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt < %s -instcombine -S -o - | FileCheck %s
; CHECK-LABEL: @a(
define i32 @a(<4 x i64> %I) {
-; CHECK-LABEL: @a(
-; CHECK-NEXT: entry:
-; CHECK-NEXT: [[TMP0:%.*]] = extractelement <4 x i64> [[I:%.*]], i32 3
-; CHECK-NEXT: [[K:%.*]] = trunc i64 [[TMP0]] to i32
-; CHECK-NEXT: ret i32 [[K]]
-;
entry:
- %J = trunc <4 x i64> %I to <4 x i32>
- %K = extractelement <4 x i32> %J, i32 3
- ret i32 %K
+; CHECK-NOT: trunc <4 x i64>
+ %J = trunc <4 x i64> %I to <4 x i32>
+ %K = extractelement <4 x i32> %J, i32 3
+; CHECK: extractelement <4 x i64>
+; CHECK: trunc i64
+; CHECK: ret
+ ret i32 %K
}
; CHECK-LABEL: @b(
define i32 @b(<4 x float> %I) {
-; CHECK-LABEL: @b(
-; CHECK-NEXT: entry:
-; CHECK-NEXT: [[TMP0:%.*]] = extractelement <4 x float> [[I:%.*]], i32 3
-; CHECK-NEXT: [[K:%.*]] = fptosi float [[TMP0]] to i32
-; CHECK-NEXT: ret i32 [[K]]
-;
entry:
- %J = fptosi <4 x float> %I to <4 x i32>
- %K = extractelement <4 x i32> %J, i32 3
- ret i32 %K
+; CHECK-NOT: fptosi <4 x float>
+ %J = fptosi <4 x float> %I to <4 x i32>
+ %K = extractelement <4 x i32> %J, i32 3
+; CHECK: extractelement <4 x float>
+; CHECK: fptosi float
+; CHECK: ret
+ ret i32 %K
}
More information about the llvm-commits
mailing list