@@ -257,8 +257,8 @@ define i64 @test_zero_disc(i64 %signed) {
257
257
; MIR-HINT: liveins: $x0
258
258
; MIR-HINT-DAG: %[[SIGNED:[0-9]+]]:gpr64common = COPY $x0
259
259
; MIR-HINT: $x17, {{(dead )?}}$xzr = PAUTH_AUTH %[[SIGNED]], $xzr, 0, 0, 1, implicit-def $x16{{$}}
260
- ; MIR-HINT-DAG: %[[AUTED:[0-9]+]]:gpr64common = COPY $x17
261
- ; MIR-HINT-DAG: $x0 = COPY %[[AUTED]]
260
+ ; MIR-HINT: %[[AUTED:[0-9]+]]:gpr64common = COPY $x17
261
+ ; MIR-HINT: $x0 = COPY %[[AUTED]]
262
262
; MIR-HINT: RET_ReallyLR implicit $x0
263
263
264
264
; MIR-V83-LABEL: name: test_zero_disc
@@ -267,7 +267,7 @@ define i64 @test_zero_disc(i64 %signed) {
267
267
; MIR-V83: liveins: $x0
268
268
; MIR-V83-DAG: %[[SIGNED:[0-9]+]]:gpr64common = COPY $x0
269
269
; MIR-V83: %[[AUTED:[0-9]+]]:gpr64common, {{(dead )?}}$xzr = PAUTH_AUTH %[[SIGNED]], $xzr, 0, 0, 1, implicit-def %{{[0-9]+}}{{$}}
270
- ; MIR-V83-DAG: $x0 = COPY %[[AUTED]]
270
+ ; MIR-V83: $x0 = COPY %[[AUTED]]
271
271
; MIR-V83: RET_ReallyLR implicit $x0
272
272
%auted = call i64 @llvm.ptrauth.auth (i64 %signed , i32 1 , i64 0 )
273
273
ret i64 %auted
@@ -291,8 +291,8 @@ define i64 @test_immediate_disc(i64 %signed) {
291
291
; MIR-HINT: liveins: $x0
292
292
; MIR-HINT-DAG: %[[SIGNED:[0-9]+]]:gpr64common = COPY $x0
293
293
; MIR-HINT: $x17, {{(dead )?}}$xzr = PAUTH_AUTH %[[SIGNED]], $xzr, 42, 0, 1, implicit-def $x16{{$}}
294
- ; MIR-HINT-DAG: %[[AUTED:[0-9]+]]:gpr64common = COPY $x17
295
- ; MIR-HINT-DAG: $x0 = COPY %[[AUTED]]
294
+ ; MIR-HINT: %[[AUTED:[0-9]+]]:gpr64common = COPY $x17
295
+ ; MIR-HINT: $x0 = COPY %[[AUTED]]
296
296
; MIR-HINT: RET_ReallyLR implicit $x0
297
297
298
298
; MIR-V83-LABEL: name: test_immediate_disc
@@ -301,7 +301,7 @@ define i64 @test_immediate_disc(i64 %signed) {
301
301
; MIR-V83: liveins: $x0
302
302
; MIR-V83-DAG: %[[SIGNED:[0-9]+]]:gpr64common = COPY $x0
303
303
; MIR-V83: %[[AUTED:[0-9]+]]:gpr64common, {{(dead )?}}$xzr = PAUTH_AUTH %[[SIGNED]], $xzr, 42, 0, 1, implicit-def %{{[0-9]+}}{{$}}
304
- ; MIR-V83-DAG: $x0 = COPY %[[AUTED]]
304
+ ; MIR-V83: $x0 = COPY %[[AUTED]]
305
305
; MIR-V83: RET_ReallyLR implicit $x0
306
306
%auted = call i64 @llvm.ptrauth.auth (i64 %signed , i32 1 , i64 42 )
307
307
ret i64 %auted
@@ -325,8 +325,8 @@ define i64 @test_raw_disc(i64 %signed, i64 %raw_disc) {
325
325
; MIR-HINT-DAG: %[[SIGNED:[0-9]+]]:gpr64common = COPY $x0
326
326
; MIR-HINT-DAG: %[[RAW_DISC:[0-9]+]]:gpr64 = COPY $x1
327
327
; MIR-HINT: $x17, {{(dead )?}}$x16 = PAUTH_AUTH %[[SIGNED]], %[[RAW_DISC]], 0, 0, 1{{$}}
328
- ; MIR-HINT-DAG: %[[AUTED:[0-9]+]]:gpr64common = COPY $x17
329
- ; MIR-HINT-DAG: $x0 = COPY %[[AUTED]]
328
+ ; MIR-HINT: %[[AUTED:[0-9]+]]:gpr64common = COPY $x17
329
+ ; MIR-HINT: $x0 = COPY %[[AUTED]]
330
330
; MIR-HINT: RET_ReallyLR implicit $x0
331
331
332
332
; MIR-V83-LABEL: name: test_raw_disc
@@ -336,7 +336,7 @@ define i64 @test_raw_disc(i64 %signed, i64 %raw_disc) {
336
336
; MIR-V83-DAG: %[[SIGNED:[0-9]+]]:gpr64common = COPY $x0
337
337
; MIR-V83-DAG: %[[RAW_DISC:[0-9]+]]:gpr64 = COPY $x1
338
338
; MIR-V83: %[[AUTED:[0-9]+]]:gpr64common, {{(dead )?}}%{{[0-9]+}}:gpr64 = PAUTH_AUTH %[[SIGNED]], %[[RAW_DISC]], 0, 0, 1{{$}}
339
- ; MIR-V83-DAG: $x0 = COPY %[[AUTED]]
339
+ ; MIR-V83: $x0 = COPY %[[AUTED]]
340
340
; MIR-V83: RET_ReallyLR implicit $x0
341
341
%auted = call i64 @llvm.ptrauth.auth (i64 %signed , i32 1 , i64 %raw_disc )
342
342
ret i64 %auted
@@ -362,8 +362,8 @@ define i64 @test_blended_disc(i64 %signed, i64 %addr_disc) {
362
362
; MIR-HINT-DAG: %[[SIGNED:[0-9]+]]:gpr64common = COPY $x0
363
363
; MIR-HINT-DAG: %[[ADDR_DISC:[0-9]+]]:gpr64 = COPY $x1
364
364
; MIR-HINT: $x17, {{(dead )?}}$x16 = PAUTH_AUTH %[[SIGNED]], %[[ADDR_DISC]], 42, 1, 1{{$}}
365
- ; MIR-HINT-DAG: %[[AUTED:[0-9]+]]:gpr64common = COPY $x17
366
- ; MIR-HINT-DAG: $x0 = COPY %[[AUTED]]
365
+ ; MIR-HINT: %[[AUTED:[0-9]+]]:gpr64common = COPY $x17
366
+ ; MIR-HINT: $x0 = COPY %[[AUTED]]
367
367
; MIR-HINT: RET_ReallyLR implicit $x0
368
368
369
369
; MIR-V83-LABEL: name: test_blended_disc
@@ -373,7 +373,7 @@ define i64 @test_blended_disc(i64 %signed, i64 %addr_disc) {
373
373
; MIR-V83-DAG: %[[SIGNED:[0-9]+]]:gpr64common = COPY $x0
374
374
; MIR-V83-DAG: %[[ADDR_DISC:[0-9]+]]:gpr64 = COPY $x1
375
375
; MIR-V83: %[[AUTED:[0-9]+]]:gpr64common, {{(dead )?}}%{{[0-9]+}}:gpr64 = PAUTH_AUTH %[[SIGNED]], %[[ADDR_DISC]], 42, 1, 1{{$}}
376
- ; MIR-V83-DAG: $x0 = COPY %[[AUTED]]
376
+ ; MIR-V83: $x0 = COPY %[[AUTED]]
377
377
; MIR-V83: RET_ReallyLR implicit $x0
378
378
%disc = call i64 @llvm.ptrauth.blend (i64 %addr_disc , i64 42 )
379
379
%auted = call i64 @llvm.ptrauth.auth (i64 %signed , i32 1 , i64 %disc )
@@ -400,8 +400,8 @@ define i64 @test_blended_with_zero(i64 %signed, i64 %addr_disc) {
400
400
; MIR-HINT-DAG: %[[SIGNED:[0-9]+]]:gpr64common = COPY $x0
401
401
; MIR-HINT-DAG: %[[ADDR_DISC:[0-9]+]]:gpr64 = COPY $x1
402
402
; MIR-HINT: $x17, {{(dead )?}}$x16 = PAUTH_AUTH %[[SIGNED]], %[[ADDR_DISC]], 0, 1, 1{{$}}
403
- ; MIR-HINT-DAG: %[[AUTED:[0-9]+]]:gpr64common = COPY $x17
404
- ; MIR-HINT-DAG: $x0 = COPY %[[AUTED]]
403
+ ; MIR-HINT: %[[AUTED:[0-9]+]]:gpr64common = COPY $x17
404
+ ; MIR-HINT: $x0 = COPY %[[AUTED]]
405
405
; MIR-HINT: RET_ReallyLR implicit $x0
406
406
407
407
; MIR-V83-LABEL: name: test_blended_with_zero
@@ -411,7 +411,7 @@ define i64 @test_blended_with_zero(i64 %signed, i64 %addr_disc) {
411
411
; MIR-V83-DAG: %[[SIGNED:[0-9]+]]:gpr64common = COPY $x0
412
412
; MIR-V83-DAG: %[[ADDR_DISC:[0-9]+]]:gpr64 = COPY $x1
413
413
; MIR-V83: %[[AUTED:[0-9]+]]:gpr64common, {{(dead )?}}%{{[0-9]+}}:gpr64 = PAUTH_AUTH %[[SIGNED]], %[[ADDR_DISC]], 0, 1, 1{{$}}
414
- ; MIR-V83-DAG: $x0 = COPY %[[AUTED]]
414
+ ; MIR-V83: $x0 = COPY %[[AUTED]]
415
415
; MIR-V83: RET_ReallyLR implicit $x0
416
416
%disc = call i64 @llvm.ptrauth.blend (i64 %addr_disc , i64 0 )
417
417
%auted = call i64 @llvm.ptrauth.auth (i64 %signed , i32 1 , i64 %disc )
@@ -439,8 +439,8 @@ define i64 @test_null_blend(i64 %signed) {
439
439
; MIR-HINT-DAG: %[[SIGNED:[0-9]+]]:gpr64common = COPY $x0
440
440
; MIR-HINT-DAG: %[[ZERO:[0-9]+]]:gpr64 = COPY $xzr
441
441
; MIR-HINT: $x17, {{(dead )?}}$x16 = PAUTH_AUTH %[[SIGNED]], %[[ZERO]], 42, 1, 1{{$}}
442
- ; MIR-HINT-DAG: %[[AUTED:[0-9]+]]:gpr64common = COPY $x17
443
- ; MIR-HINT-DAG: $x0 = COPY %[[AUTED]]
442
+ ; MIR-HINT: %[[AUTED:[0-9]+]]:gpr64common = COPY $x17
443
+ ; MIR-HINT: $x0 = COPY %[[AUTED]]
444
444
; MIR-HINT: RET_ReallyLR implicit $x0
445
445
446
446
; MIR-V83-LABEL: name: test_null_blend
@@ -450,7 +450,7 @@ define i64 @test_null_blend(i64 %signed) {
450
450
; MIR-V83-DAG: %[[SIGNED:[0-9]+]]:gpr64common = COPY $x0
451
451
; MIR-V83-DAG: %[[ZERO:[0-9]+]]:gpr64 = COPY $xzr
452
452
; MIR-V83: %[[AUTED:[0-9]+]]:gpr64common, {{(dead )?}}%{{[0-9]+}}:gpr64 = PAUTH_AUTH %[[SIGNED]], %[[ZERO]], 42, 1, 1{{$}}
453
- ; MIR-V83-DAG: $x0 = COPY %[[AUTED]]
453
+ ; MIR-V83: $x0 = COPY %[[AUTED]]
454
454
; MIR-V83: RET_ReallyLR implicit $x0
455
455
%disc = call i64 @llvm.ptrauth.blend (i64 0 , i64 42 )
456
456
%auted = call i64 @llvm.ptrauth.auth (i64 %signed , i32 1 , i64 %disc )
@@ -477,8 +477,8 @@ define i64 @test_custom_discriminator(i64 %signed, i64 %n) {
477
477
; MIR-HINT-DAG: %[[N:[0-9]+]]:gpr64{{.*}} = COPY $x1
478
478
; MIR-HINT-DAG: %[[DISC:[0-9]+]]:gpr64common = ADDXri %[[N]], 42, 0
479
479
; MIR-HINT: $x17, {{(dead )?}}$x16 = PAUTH_AUTH %[[SIGNED]], %[[DISC]], 0, 0, 1{{$}}
480
- ; MIR-HINT-DAG: %[[AUTED:[0-9]+]]:gpr64common = COPY $x17
481
- ; MIR-HINT-DAG: $x0 = COPY %[[AUTED]]
480
+ ; MIR-HINT: %[[AUTED:[0-9]+]]:gpr64common = COPY $x17
481
+ ; MIR-HINT: $x0 = COPY %[[AUTED]]
482
482
; MIR-HINT: RET_ReallyLR implicit $x0
483
483
484
484
; MIR-V83-LABEL: name: test_custom_discriminator
@@ -489,7 +489,7 @@ define i64 @test_custom_discriminator(i64 %signed, i64 %n) {
489
489
; MIR-V83-DAG: %[[N:[0-9]+]]:gpr64{{.*}} = COPY $x1
490
490
; MIR-V83-DAG: %[[DISC:[0-9]+]]:gpr64common = ADDXri %[[N]], 42, 0
491
491
; MIR-V83: %[[AUTED:[0-9]+]]:gpr64common, {{(dead )?}}%{{[0-9]+}}:gpr64 = PAUTH_AUTH %[[SIGNED]], %[[DISC]], 0, 0, 1{{$}}
492
- ; MIR-V83-DAG: $x0 = COPY %[[AUTED]]
492
+ ; MIR-V83: $x0 = COPY %[[AUTED]]
493
493
; MIR-V83: RET_ReallyLR implicit $x0
494
494
%disc = add i64 %n , 42
495
495
%auted = call i64 @llvm.ptrauth.auth (i64 %signed , i32 1 , i64 %disc )
0 commit comments