@@ -394,226 +394,226 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
394
394
AtomicReadOp :: Acquire ,
395
395
) ?,
396
396
397
- "atomic_or" => this. atomic_op_min_max (
397
+ "atomic_or" => this. atomic_op (
398
398
args,
399
399
dest,
400
400
AtomicOp :: MirOp ( BinOp :: BitOr , false ) ,
401
401
AtomicRwOp :: SeqCst ,
402
402
) ?,
403
- "atomic_or_acq" => this. atomic_op_min_max (
403
+ "atomic_or_acq" => this. atomic_op (
404
404
args,
405
405
dest,
406
406
AtomicOp :: MirOp ( BinOp :: BitOr , false ) ,
407
407
AtomicRwOp :: Acquire ,
408
408
) ?,
409
- "atomic_or_rel" => this. atomic_op_min_max (
409
+ "atomic_or_rel" => this. atomic_op (
410
410
args,
411
411
dest,
412
412
AtomicOp :: MirOp ( BinOp :: BitOr , false ) ,
413
413
AtomicRwOp :: Release ,
414
414
) ?,
415
- "atomic_or_acqrel" => this. atomic_op_min_max (
415
+ "atomic_or_acqrel" => this. atomic_op (
416
416
args,
417
417
dest,
418
418
AtomicOp :: MirOp ( BinOp :: BitOr , false ) ,
419
419
AtomicRwOp :: AcqRel ,
420
420
) ?,
421
- "atomic_or_relaxed" => this. atomic_op_min_max (
421
+ "atomic_or_relaxed" => this. atomic_op (
422
422
args,
423
423
dest,
424
424
AtomicOp :: MirOp ( BinOp :: BitOr , false ) ,
425
425
AtomicRwOp :: Relaxed ,
426
426
) ?,
427
- "atomic_xor" => this. atomic_op_min_max (
427
+ "atomic_xor" => this. atomic_op (
428
428
args,
429
429
dest,
430
430
AtomicOp :: MirOp ( BinOp :: BitXor , false ) ,
431
431
AtomicRwOp :: SeqCst ,
432
432
) ?,
433
- "atomic_xor_acq" => this. atomic_op_min_max (
433
+ "atomic_xor_acq" => this. atomic_op (
434
434
args,
435
435
dest,
436
436
AtomicOp :: MirOp ( BinOp :: BitXor , false ) ,
437
437
AtomicRwOp :: Acquire ,
438
438
) ?,
439
- "atomic_xor_rel" => this. atomic_op_min_max (
439
+ "atomic_xor_rel" => this. atomic_op (
440
440
args,
441
441
dest,
442
442
AtomicOp :: MirOp ( BinOp :: BitXor , false ) ,
443
443
AtomicRwOp :: Release ,
444
444
) ?,
445
- "atomic_xor_acqrel" => this. atomic_op_min_max (
445
+ "atomic_xor_acqrel" => this. atomic_op (
446
446
args,
447
447
dest,
448
448
AtomicOp :: MirOp ( BinOp :: BitXor , false ) ,
449
449
AtomicRwOp :: AcqRel ,
450
450
) ?,
451
- "atomic_xor_relaxed" => this. atomic_op_min_max (
451
+ "atomic_xor_relaxed" => this. atomic_op (
452
452
args,
453
453
dest,
454
454
AtomicOp :: MirOp ( BinOp :: BitXor , false ) ,
455
455
AtomicRwOp :: Relaxed ,
456
456
) ?,
457
- "atomic_and" => this. atomic_op_min_max (
457
+ "atomic_and" => this. atomic_op (
458
458
args,
459
459
dest,
460
460
AtomicOp :: MirOp ( BinOp :: BitAnd , false ) ,
461
461
AtomicRwOp :: SeqCst ,
462
462
) ?,
463
- "atomic_and_acq" => this. atomic_op_min_max (
463
+ "atomic_and_acq" => this. atomic_op (
464
464
args,
465
465
dest,
466
466
AtomicOp :: MirOp ( BinOp :: BitAnd , false ) ,
467
467
AtomicRwOp :: Acquire ,
468
468
) ?,
469
- "atomic_and_rel" => this. atomic_op_min_max (
469
+ "atomic_and_rel" => this. atomic_op (
470
470
args,
471
471
dest,
472
472
AtomicOp :: MirOp ( BinOp :: BitAnd , false ) ,
473
473
AtomicRwOp :: Release ,
474
474
) ?,
475
- "atomic_and_acqrel" => this. atomic_op_min_max (
475
+ "atomic_and_acqrel" => this. atomic_op (
476
476
args,
477
477
dest,
478
478
AtomicOp :: MirOp ( BinOp :: BitAnd , false ) ,
479
479
AtomicRwOp :: AcqRel ,
480
480
) ?,
481
- "atomic_and_relaxed" => this. atomic_op_min_max (
481
+ "atomic_and_relaxed" => this. atomic_op (
482
482
args,
483
483
dest,
484
484
AtomicOp :: MirOp ( BinOp :: BitAnd , false ) ,
485
485
AtomicRwOp :: Relaxed ,
486
486
) ?,
487
- "atomic_nand" => this. atomic_op_min_max (
487
+ "atomic_nand" => this. atomic_op (
488
488
args,
489
489
dest,
490
490
AtomicOp :: MirOp ( BinOp :: BitAnd , true ) ,
491
491
AtomicRwOp :: SeqCst ,
492
492
) ?,
493
- "atomic_nand_acq" => this. atomic_op_min_max (
493
+ "atomic_nand_acq" => this. atomic_op (
494
494
args,
495
495
dest,
496
496
AtomicOp :: MirOp ( BinOp :: BitAnd , true ) ,
497
497
AtomicRwOp :: Acquire ,
498
498
) ?,
499
- "atomic_nand_rel" => this. atomic_op_min_max (
499
+ "atomic_nand_rel" => this. atomic_op (
500
500
args,
501
501
dest,
502
502
AtomicOp :: MirOp ( BinOp :: BitAnd , true ) ,
503
503
AtomicRwOp :: Release ,
504
504
) ?,
505
- "atomic_nand_acqrel" => this. atomic_op_min_max (
505
+ "atomic_nand_acqrel" => this. atomic_op (
506
506
args,
507
507
dest,
508
508
AtomicOp :: MirOp ( BinOp :: BitAnd , true ) ,
509
509
AtomicRwOp :: AcqRel ,
510
510
) ?,
511
- "atomic_nand_relaxed" => this. atomic_op_min_max (
511
+ "atomic_nand_relaxed" => this. atomic_op (
512
512
args,
513
513
dest,
514
514
AtomicOp :: MirOp ( BinOp :: BitAnd , true ) ,
515
515
AtomicRwOp :: Relaxed ,
516
516
) ?,
517
- "atomic_xadd" => this. atomic_op_min_max (
517
+ "atomic_xadd" => this. atomic_op (
518
518
args,
519
519
dest,
520
520
AtomicOp :: MirOp ( BinOp :: Add , false ) ,
521
521
AtomicRwOp :: SeqCst ,
522
522
) ?,
523
- "atomic_xadd_acq" => this. atomic_op_min_max (
523
+ "atomic_xadd_acq" => this. atomic_op (
524
524
args,
525
525
dest,
526
526
AtomicOp :: MirOp ( BinOp :: Add , false ) ,
527
527
AtomicRwOp :: Acquire ,
528
528
) ?,
529
- "atomic_xadd_rel" => this. atomic_op_min_max (
529
+ "atomic_xadd_rel" => this. atomic_op (
530
530
args,
531
531
dest,
532
532
AtomicOp :: MirOp ( BinOp :: Add , false ) ,
533
533
AtomicRwOp :: Release ,
534
534
) ?,
535
- "atomic_xadd_acqrel" => this. atomic_op_min_max (
535
+ "atomic_xadd_acqrel" => this. atomic_op (
536
536
args,
537
537
dest,
538
538
AtomicOp :: MirOp ( BinOp :: Add , false ) ,
539
539
AtomicRwOp :: AcqRel ,
540
540
) ?,
541
- "atomic_xadd_relaxed" => this. atomic_op_min_max (
541
+ "atomic_xadd_relaxed" => this. atomic_op (
542
542
args,
543
543
dest,
544
544
AtomicOp :: MirOp ( BinOp :: Add , false ) ,
545
545
AtomicRwOp :: Relaxed ,
546
546
) ?,
547
- "atomic_xsub" => this. atomic_op_min_max (
547
+ "atomic_xsub" => this. atomic_op (
548
548
args,
549
549
dest,
550
550
AtomicOp :: MirOp ( BinOp :: Sub , false ) ,
551
551
AtomicRwOp :: SeqCst ,
552
552
) ?,
553
- "atomic_xsub_acq" => this. atomic_op_min_max (
553
+ "atomic_xsub_acq" => this. atomic_op (
554
554
args,
555
555
dest,
556
556
AtomicOp :: MirOp ( BinOp :: Sub , false ) ,
557
557
AtomicRwOp :: Acquire ,
558
558
) ?,
559
- "atomic_xsub_rel" => this. atomic_op_min_max (
559
+ "atomic_xsub_rel" => this. atomic_op (
560
560
args,
561
561
dest,
562
562
AtomicOp :: MirOp ( BinOp :: Sub , false ) ,
563
563
AtomicRwOp :: Release ,
564
564
) ?,
565
- "atomic_xsub_acqrel" => this. atomic_op_min_max (
565
+ "atomic_xsub_acqrel" => this. atomic_op (
566
566
args,
567
567
dest,
568
568
AtomicOp :: MirOp ( BinOp :: Sub , false ) ,
569
569
AtomicRwOp :: AcqRel ,
570
570
) ?,
571
- "atomic_xsub_relaxed" => this. atomic_op_min_max (
571
+ "atomic_xsub_relaxed" => this. atomic_op (
572
572
args,
573
573
dest,
574
574
AtomicOp :: MirOp ( BinOp :: Sub , false ) ,
575
575
AtomicRwOp :: Relaxed ,
576
576
) ?,
577
577
"atomic_min" =>
578
- this. atomic_op_min_max ( args, dest, AtomicOp :: Min , AtomicRwOp :: SeqCst ) ?,
578
+ this. atomic_op ( args, dest, AtomicOp :: Min , AtomicRwOp :: SeqCst ) ?,
579
579
"atomic_min_acq" =>
580
- this. atomic_op_min_max ( args, dest, AtomicOp :: Min , AtomicRwOp :: Acquire ) ?,
580
+ this. atomic_op ( args, dest, AtomicOp :: Min , AtomicRwOp :: Acquire ) ?,
581
581
"atomic_min_rel" =>
582
- this. atomic_op_min_max ( args, dest, AtomicOp :: Min , AtomicRwOp :: Release ) ?,
582
+ this. atomic_op ( args, dest, AtomicOp :: Min , AtomicRwOp :: Release ) ?,
583
583
"atomic_min_acqrel" =>
584
- this. atomic_op_min_max ( args, dest, AtomicOp :: Min , AtomicRwOp :: AcqRel ) ?,
584
+ this. atomic_op ( args, dest, AtomicOp :: Min , AtomicRwOp :: AcqRel ) ?,
585
585
"atomic_min_relaxed" =>
586
- this. atomic_op_min_max ( args, dest, AtomicOp :: Min , AtomicRwOp :: Relaxed ) ?,
586
+ this. atomic_op ( args, dest, AtomicOp :: Min , AtomicRwOp :: Relaxed ) ?,
587
587
"atomic_max" =>
588
- this. atomic_op_min_max ( args, dest, AtomicOp :: Max , AtomicRwOp :: SeqCst ) ?,
588
+ this. atomic_op ( args, dest, AtomicOp :: Max , AtomicRwOp :: SeqCst ) ?,
589
589
"atomic_max_acq" =>
590
- this. atomic_op_min_max ( args, dest, AtomicOp :: Max , AtomicRwOp :: Acquire ) ?,
590
+ this. atomic_op ( args, dest, AtomicOp :: Max , AtomicRwOp :: Acquire ) ?,
591
591
"atomic_max_rel" =>
592
- this. atomic_op_min_max ( args, dest, AtomicOp :: Max , AtomicRwOp :: Release ) ?,
592
+ this. atomic_op ( args, dest, AtomicOp :: Max , AtomicRwOp :: Release ) ?,
593
593
"atomic_max_acqrel" =>
594
- this. atomic_op_min_max ( args, dest, AtomicOp :: Max , AtomicRwOp :: AcqRel ) ?,
594
+ this. atomic_op ( args, dest, AtomicOp :: Max , AtomicRwOp :: AcqRel ) ?,
595
595
"atomic_max_relaxed" =>
596
- this. atomic_op_min_max ( args, dest, AtomicOp :: Max , AtomicRwOp :: Relaxed ) ?,
596
+ this. atomic_op ( args, dest, AtomicOp :: Max , AtomicRwOp :: Relaxed ) ?,
597
597
"atomic_umin" =>
598
- this. atomic_op_min_max ( args, dest, AtomicOp :: Min , AtomicRwOp :: SeqCst ) ?,
598
+ this. atomic_op ( args, dest, AtomicOp :: Min , AtomicRwOp :: SeqCst ) ?,
599
599
"atomic_umin_acq" =>
600
- this. atomic_op_min_max ( args, dest, AtomicOp :: Min , AtomicRwOp :: Acquire ) ?,
600
+ this. atomic_op ( args, dest, AtomicOp :: Min , AtomicRwOp :: Acquire ) ?,
601
601
"atomic_umin_rel" =>
602
- this. atomic_op_min_max ( args, dest, AtomicOp :: Min , AtomicRwOp :: Release ) ?,
602
+ this. atomic_op ( args, dest, AtomicOp :: Min , AtomicRwOp :: Release ) ?,
603
603
"atomic_umin_acqrel" =>
604
- this. atomic_op_min_max ( args, dest, AtomicOp :: Min , AtomicRwOp :: AcqRel ) ?,
604
+ this. atomic_op ( args, dest, AtomicOp :: Min , AtomicRwOp :: AcqRel ) ?,
605
605
"atomic_umin_relaxed" =>
606
- this. atomic_op_min_max ( args, dest, AtomicOp :: Min , AtomicRwOp :: Relaxed ) ?,
606
+ this. atomic_op ( args, dest, AtomicOp :: Min , AtomicRwOp :: Relaxed ) ?,
607
607
"atomic_umax" =>
608
- this. atomic_op_min_max ( args, dest, AtomicOp :: Max , AtomicRwOp :: SeqCst ) ?,
608
+ this. atomic_op ( args, dest, AtomicOp :: Max , AtomicRwOp :: SeqCst ) ?,
609
609
"atomic_umax_acq" =>
610
- this. atomic_op_min_max ( args, dest, AtomicOp :: Max , AtomicRwOp :: Acquire ) ?,
610
+ this. atomic_op ( args, dest, AtomicOp :: Max , AtomicRwOp :: Acquire ) ?,
611
611
"atomic_umax_rel" =>
612
- this. atomic_op_min_max ( args, dest, AtomicOp :: Max , AtomicRwOp :: Release ) ?,
612
+ this. atomic_op ( args, dest, AtomicOp :: Max , AtomicRwOp :: Release ) ?,
613
613
"atomic_umax_acqrel" =>
614
- this. atomic_op_min_max ( args, dest, AtomicOp :: Max , AtomicRwOp :: AcqRel ) ?,
614
+ this. atomic_op ( args, dest, AtomicOp :: Max , AtomicRwOp :: AcqRel ) ?,
615
615
"atomic_umax_relaxed" =>
616
- this. atomic_op_min_max ( args, dest, AtomicOp :: Max , AtomicRwOp :: Relaxed ) ?,
616
+ this. atomic_op ( args, dest, AtomicOp :: Max , AtomicRwOp :: Relaxed ) ?,
617
617
618
618
// Query type information
619
619
"assert_zero_valid" | "assert_uninit_valid" => {
@@ -729,7 +729,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
729
729
Ok ( ( ) )
730
730
}
731
731
732
- fn atomic_op_min_max (
732
+ fn atomic_op (
733
733
& mut self ,
734
734
args : & [ OpTy < ' tcx , Tag > ] ,
735
735
dest : & PlaceTy < ' tcx , Tag > ,
0 commit comments