@@ -451,11 +451,10 @@ define dso_local bfloat @atomicrmw_fsub_bfloat_aligned_monotonic(ptr %ptr, bfloa
451
451
; -O0-LABEL: atomicrmw_fsub_bfloat_aligned_monotonic:
452
452
; -O0: add w8, w8, w9
453
453
; -O0: add w8, w8, w9
454
- ; -O0: ldaxrh w9 , [x11]
455
- ; -O0: cmp w9, w8 , uxth
454
+ ; -O0: ldaxrh w8 , [x11]
455
+ ; -O0: cmp w8, w9 , uxth
456
456
; -O0: stlxrh w10, w12, [x11]
457
- ; -O0: subs w8, w9, w8, uxth
458
- ; -O0: subs w8, w8, #1
457
+ ; -O0: subs w9, w8, w9, uxth
459
458
;
460
459
; -O1-LABEL: atomicrmw_fsub_bfloat_aligned_monotonic:
461
460
; -O1: ldxrh w9, [x0]
@@ -470,11 +469,10 @@ define dso_local bfloat @atomicrmw_fsub_bfloat_aligned_acquire(ptr %ptr, bfloat
470
469
; -O0-LABEL: atomicrmw_fsub_bfloat_aligned_acquire:
471
470
; -O0: add w8, w8, w9
472
471
; -O0: add w8, w8, w9
473
- ; -O0: ldaxrh w9 , [x11]
474
- ; -O0: cmp w9, w8 , uxth
472
+ ; -O0: ldaxrh w8 , [x11]
473
+ ; -O0: cmp w8, w9 , uxth
475
474
; -O0: stlxrh w10, w12, [x11]
476
- ; -O0: subs w8, w9, w8, uxth
477
- ; -O0: subs w8, w8, #1
475
+ ; -O0: subs w9, w8, w9, uxth
478
476
;
479
477
; -O1-LABEL: atomicrmw_fsub_bfloat_aligned_acquire:
480
478
; -O1: ldaxrh w9, [x0]
@@ -489,11 +487,10 @@ define dso_local bfloat @atomicrmw_fsub_bfloat_aligned_release(ptr %ptr, bfloat
489
487
; -O0-LABEL: atomicrmw_fsub_bfloat_aligned_release:
490
488
; -O0: add w8, w8, w9
491
489
; -O0: add w8, w8, w9
492
- ; -O0: ldaxrh w9 , [x11]
493
- ; -O0: cmp w9, w8 , uxth
490
+ ; -O0: ldaxrh w8 , [x11]
491
+ ; -O0: cmp w8, w9 , uxth
494
492
; -O0: stlxrh w10, w12, [x11]
495
- ; -O0: subs w8, w9, w8, uxth
496
- ; -O0: subs w8, w8, #1
493
+ ; -O0: subs w9, w8, w9, uxth
497
494
;
498
495
; -O1-LABEL: atomicrmw_fsub_bfloat_aligned_release:
499
496
; -O1: ldxrh w9, [x0]
@@ -508,11 +505,10 @@ define dso_local bfloat @atomicrmw_fsub_bfloat_aligned_acq_rel(ptr %ptr, bfloat
508
505
; -O0-LABEL: atomicrmw_fsub_bfloat_aligned_acq_rel:
509
506
; -O0: add w8, w8, w9
510
507
; -O0: add w8, w8, w9
511
- ; -O0: ldaxrh w9 , [x11]
512
- ; -O0: cmp w9, w8 , uxth
508
+ ; -O0: ldaxrh w8 , [x11]
509
+ ; -O0: cmp w8, w9 , uxth
513
510
; -O0: stlxrh w10, w12, [x11]
514
- ; -O0: subs w8, w9, w8, uxth
515
- ; -O0: subs w8, w8, #1
511
+ ; -O0: subs w9, w8, w9, uxth
516
512
;
517
513
; -O1-LABEL: atomicrmw_fsub_bfloat_aligned_acq_rel:
518
514
; -O1: ldaxrh w9, [x0]
@@ -527,11 +523,10 @@ define dso_local bfloat @atomicrmw_fsub_bfloat_aligned_seq_cst(ptr %ptr, bfloat
527
523
; -O0-LABEL: atomicrmw_fsub_bfloat_aligned_seq_cst:
528
524
; -O0: add w8, w8, w9
529
525
; -O0: add w8, w8, w9
530
- ; -O0: ldaxrh w9 , [x11]
531
- ; -O0: cmp w9, w8 , uxth
526
+ ; -O0: ldaxrh w8 , [x11]
527
+ ; -O0: cmp w8, w9 , uxth
532
528
; -O0: stlxrh w10, w12, [x11]
533
- ; -O0: subs w8, w9, w8, uxth
534
- ; -O0: subs w8, w8, #1
529
+ ; -O0: subs w9, w8, w9, uxth
535
530
;
536
531
; -O1-LABEL: atomicrmw_fsub_bfloat_aligned_seq_cst:
537
532
; -O1: ldaxrh w9, [x0]
0 commit comments