Skip to content

Commit 8336991

Browse files
chapuniAlexisPerry
authored andcommitted
mcdc.ll: Relax.
1 parent 708c03c commit 8336991

File tree

1 file changed

+6
-6
lines changed
  • llvm/test/Instrumentation/InstrProfiling

1 file changed

+6
-6
lines changed

llvm/test/Instrumentation/InstrProfiling/mcdc.ll

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
; Check that MC/DC intrinsics are properly lowered
2-
; RUN: opt < %s -passes=instrprof -S | FileCheck %s
2+
; RUN: opt < %s -passes=instrprof -S | FileCheck %s --check-prefixes=CHECK,BASIC
33
; RUN: opt < %s -passes=instrprof -runtime-counter-relocation -S 2>&1 | FileCheck %s --check-prefix RELOC
44

55
; RELOC: Runtime counter relocation is presently not supported for MC/DC bitmaps
@@ -8,14 +8,14 @@ target triple = "x86_64-unknown-linux-gnu"
88

99
@__profn_test = private constant [4 x i8] c"test"
1010

11-
; CHECK: @__profbm_test = private global [1 x i8] zeroinitializer, section "__llvm_prf_bits", comdat, align 1
11+
; BASIC: [[PROFBM_ADDR:@__profbm_test]] = private global [1 x i8] zeroinitializer, section "__llvm_prf_bits", comdat, align 1
1212

1313
define dso_local void @test(i32 noundef %A) {
1414
entry:
1515
%A.addr = alloca i32, align 4
1616
%mcdc.addr = alloca i32, align 4
1717
call void @llvm.instrprof.cover(ptr @__profn_test, i64 99278, i32 5, i32 0)
18-
; CHECK: store i8 0, ptr @__profc_test, align 1
18+
; BASIC: store i8 0, ptr @__profc_test, align 1
1919

2020
call void @llvm.instrprof.mcdc.parameters(ptr @__profn_test, i64 99278, i32 1)
2121
store i32 0, ptr %mcdc.addr, align 4
@@ -26,13 +26,13 @@ entry:
2626
; CHECK: %[[TEMP0:mcdc.*]] = load i32, ptr %mcdc.addr, align 4
2727
; CHECK-NEXT: %[[TEMP:[0-9]+]] = add i32 %[[TEMP0]], 0
2828
; CHECK-NEXT: %[[LAB4:[0-9]+]] = lshr i32 %[[TEMP]], 3
29-
; CHECK-NEXT: %[[LAB7:[0-9]+]] = getelementptr inbounds i8, ptr @__profbm_test, i32 %[[LAB4]]
29+
; CHECK-NEXT: %[[LAB7:[0-9]+]] = getelementptr inbounds i8, ptr [[PROFBM_ADDR]], i32 %[[LAB4]]
3030
; CHECK-NEXT: %[[LAB8:[0-9]+]] = and i32 %[[TEMP]], 7
3131
; CHECK-NEXT: %[[LAB9:[0-9]+]] = trunc i32 %[[LAB8]] to i8
3232
; CHECK-NEXT: %[[LAB10:[0-9]+]] = shl i8 1, %[[LAB9]]
3333
; CHECK-NEXT: %[[BITS:mcdc.*]] = load i8, ptr %[[LAB7]], align 1
34-
; CHECK-NEXT: %[[LAB11:[0-9]+]] = or i8 %[[BITS]], %[[LAB10]]
35-
; CHECK-NEXT: store i8 %[[LAB11]], ptr %[[LAB7]], align 1
34+
; BASIC-NEXT: %[[LAB11:[0-9]+]] = or i8 %[[BITS]], %[[LAB10]]
35+
; BASIC-NEXT: store i8 %[[LAB11]], ptr %[[LAB7]], align 1
3636
ret void
3737
}
3838

0 commit comments

Comments
 (0)