Skip to content

Commit b8194a0

Browse files
fix test cases
1 parent b45aef2 commit b8194a0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

llvm/test/CodeGen/SPIRV/passes/translate-aggregate-uaddo.ll

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,20 @@
99
; Aggregate data are wrapped into @llvm.fake.use(),
1010
; and their attributes are packed into a metadata for @llvm.spv.value.md().
1111
; CHECK-IR: %[[R1:.*]] = call { i32, i1 } @llvm.uadd.with.overflow.i32
12-
; CHECK-IR: call void @llvm.spv.value.md(metadata !0)
12+
; CHECK-IR: call void @llvm.spv.value.md(metadata !1)
1313
; CHECK-IR: call void (...) @llvm.fake.use({ i32, i1 } %[[R1]])
1414
; CHECK-IR: %math = extractvalue { i32, i1 } %[[R1]], 0
1515
; CHECK-IR: %ov = extractvalue { i32, i1 } %[[R1]], 1
1616
; Type/Name attributes of the value.
17-
; CHECK-IR: !0 = !{{[{]}}!1, !""{{[}]}}
17+
; CHECK-IR: !1 = !{{[{]}}!2, !""{{[}]}}
1818
; Origin data type of the value.
19-
; CHECK-IR: !1 = !{{[{]}}{{[{]}} i32, i1 {{[}]}} poison{{[}]}}
19+
; CHECK-IR: !2 = !{{[{]}}{{[{]}} i32, i1 {{[}]}} poison{{[}]}}
2020

2121
; RUN: llc -O0 -mtriple=spirv64-unknown-unknown %s -o - -print-after=irtranslator 2>&1 | FileCheck %s --check-prefix=CHECK-GMIR
2222
; Required info succeeded to get through IRTranslator.
2323
; CHECK-GMIR: %[[phires:.*]]:_(s32) = G_PHI
2424
; CHECK-GMIR: %[[math:.*]]:id(s32), %[[ov:.*]]:_(s1) = G_UADDO %[[phires]]:_, %[[#]]:_
25-
; CHECK-GMIR: G_INTRINSIC_W_SIDE_EFFECTS intrinsic(@llvm.spv.value.md), !0
25+
; CHECK-GMIR: G_INTRINSIC_W_SIDE_EFFECTS intrinsic(@llvm.spv.value.md), !1
2626
; CHECK-GMIR: FAKE_USE %[[math]]:id(s32), %[[ov]]:_(s1)
2727

2828
; RUN: llc -O0 -mtriple=spirv64-unknown-unknown %s -o - -print-after=spirv-prelegalizer 2>&1 | FileCheck %s --check-prefix=CHECK-PRE

0 commit comments

Comments
 (0)