Skip to content

Commit d92e213

Browse files
committed
hexagon: adapt test for upstream output changes
The output of IR formatting changed slightly in upstream rev a0bc67e (https://reviews.llvm.org/D123096). I'm not actually sure what any of that means, as I don't even know what hexagon is in this context, but this change allows the test to pass on both old and new LLVMs. r? @nikic
1 parent 7fe2c4b commit d92e213

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/test/assembly/asm/hexagon-types.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ macro_rules! check_reg {
7373

7474
// CHECK-LABEL: sym_static:
7575
// CHECK: InlineAsm Start
76-
// CHECK: r0 = #extern_static
76+
// CHECK: r0 = {{#+}}extern_static
7777
// CHECK: InlineAsm End
7878
#[no_mangle]
7979
pub unsafe fn sym_static() {
@@ -88,7 +88,7 @@ pub unsafe fn sym_static() {
8888

8989
// CHECK-LABEL: sym_fn:
9090
// CHECK: InlineAsm Start
91-
// CHECK: r0 = #extern_func
91+
// CHECK: r0 = {{#+}}extern_func
9292
// CHECK: InlineAsm End
9393
#[no_mangle]
9494
pub unsafe fn sym_fn() {
@@ -108,7 +108,7 @@ pub unsafe fn sym_fn() {
108108
// CHECK: InlineAsm Start
109109
// CHECK: {
110110
// CHECK: r{{[0-9]+}} = r0
111-
// CHECK: memw(r1) = r{{[0-9]+}}
111+
// CHECK: memw(r1{{(\+#0)?}}) = r{{[0-9]+}}
112112
// CHECK: }
113113
// CHECK: InlineAsm End
114114
#[no_mangle]

0 commit comments

Comments
 (0)