Skip to content

Commit fcf55d5

Browse files
committed
Generalize target registers in tests
1 parent 3518ac1 commit fcf55d5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/assembly-llvm/reg-struct-return.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ mod small {
3939
// WITH: retl
4040

4141
// WITHOUT-LABEL: small_direct_construction
42-
// WITHOUT: movl 4(%esp), %eax
43-
// WITHOUT: movw $10794, (%eax)
42+
// WITHOUT: movl 4(%esp), %e{{.*}}
43+
// WITHOUT: movw $10794, (%e{{.*}})
4444
// WITHOUT: retl $4
4545
small_t { a: 42, b: 42 }
4646
}
@@ -74,8 +74,8 @@ mod pivot {
7474
#[unsafe(no_mangle)]
7575
pub unsafe extern "C" fn pivot_direct_construction() -> pivot_t {
7676
// WITH-LABEL: pivot_direct_construction
77-
// WITH: movl $42, %eax
78-
// WITH: movl $42, %edx
77+
// WITH: movl $42, %e{{.*}}
78+
// WITH: movl $42, %e{{.*}}
7979
// WITH: retl
8080

8181
// WITHOUT-LABEL: pivot_direct_construction

0 commit comments

Comments
 (0)