@@ -369,191 +369,191 @@ define <2 x i8> @test_ssub_vector_op1_undef_mix2() {
369
369
370
370
define i8 @test_uadd_scalar_both_poison () {
371
371
; CHECK-LABEL: @test_uadd_scalar_both_poison(
372
- ; CHECK-NEXT: ret i8 undef
372
+ ; CHECK-NEXT: ret i8 poison
373
373
;
374
374
%x = call i8 @llvm.uadd.sat.i8 (i8 poison, i8 poison)
375
375
ret i8 %x
376
376
}
377
377
378
378
define i8 @test_sadd_scalar_both_poison () {
379
379
; CHECK-LABEL: @test_sadd_scalar_both_poison(
380
- ; CHECK-NEXT: ret i8 undef
380
+ ; CHECK-NEXT: ret i8 poison
381
381
;
382
382
%x = call i8 @llvm.sadd.sat.i8 (i8 poison, i8 poison)
383
383
ret i8 %x
384
384
}
385
385
386
386
define i8 @test_usub_scalar_both_poison () {
387
387
; CHECK-LABEL: @test_usub_scalar_both_poison(
388
- ; CHECK-NEXT: ret i8 undef
388
+ ; CHECK-NEXT: ret i8 poison
389
389
;
390
390
%x = call i8 @llvm.usub.sat.i8 (i8 poison, i8 poison)
391
391
ret i8 %x
392
392
}
393
393
394
394
define i8 @test_ssub_scalar_both_poison () {
395
395
; CHECK-LABEL: @test_ssub_scalar_both_poison(
396
- ; CHECK-NEXT: ret i8 undef
396
+ ; CHECK-NEXT: ret i8 poison
397
397
;
398
398
%x = call i8 @llvm.ssub.sat.i8 (i8 poison, i8 poison)
399
399
ret i8 %x
400
400
}
401
401
402
402
define i8 @test_uadd_scalar_op2_poison () {
403
403
; CHECK-LABEL: @test_uadd_scalar_op2_poison(
404
- ; CHECK-NEXT: ret i8 -1
404
+ ; CHECK-NEXT: ret i8 poison
405
405
;
406
406
%x = call i8 @llvm.uadd.sat.i8 (i8 10 , i8 poison)
407
407
ret i8 %x
408
408
}
409
409
410
410
define i8 @test_sadd_scalar_op1_poison () {
411
411
; CHECK-LABEL: @test_sadd_scalar_op1_poison(
412
- ; CHECK-NEXT: ret i8 -1
412
+ ; CHECK-NEXT: ret i8 poison
413
413
;
414
414
%x = call i8 @llvm.sadd.sat.i8 (i8 poison, i8 10 )
415
415
ret i8 %x
416
416
}
417
417
418
418
define i8 @test_usub_scalar_op2_poison () {
419
419
; CHECK-LABEL: @test_usub_scalar_op2_poison(
420
- ; CHECK-NEXT: ret i8 0
420
+ ; CHECK-NEXT: ret i8 poison
421
421
;
422
422
%x = call i8 @llvm.usub.sat.i8 (i8 10 , i8 poison)
423
423
ret i8 %x
424
424
}
425
425
426
426
define i8 @test_usub_scalar_op1_poison () {
427
427
; CHECK-LABEL: @test_usub_scalar_op1_poison(
428
- ; CHECK-NEXT: ret i8 0
428
+ ; CHECK-NEXT: ret i8 poison
429
429
;
430
430
%x = call i8 @llvm.usub.sat.i8 (i8 poison, i8 10 )
431
431
ret i8 %x
432
432
}
433
433
434
434
define <2 x i8 > @test_uadd_vector_both_poison_splat () {
435
435
; CHECK-LABEL: @test_uadd_vector_both_poison_splat(
436
- ; CHECK-NEXT: ret <2 x i8> undef
436
+ ; CHECK-NEXT: ret <2 x i8> poison
437
437
;
438
438
%x = call <2 x i8 > @llvm.uadd.sat.v2i8 (<2 x i8 > poison, <2 x i8 > poison)
439
439
ret <2 x i8 > %x
440
440
}
441
441
442
442
define <2 x i8 > @test_sadd_vector_both_poison_splat () {
443
443
; CHECK-LABEL: @test_sadd_vector_both_poison_splat(
444
- ; CHECK-NEXT: ret <2 x i8> undef
444
+ ; CHECK-NEXT: ret <2 x i8> poison
445
445
;
446
446
%x = call <2 x i8 > @llvm.sadd.sat.v2i8 (<2 x i8 > poison, <2 x i8 > poison)
447
447
ret <2 x i8 > %x
448
448
}
449
449
450
450
define <2 x i8 > @test_usub_vector_both_poison_splat () {
451
451
; CHECK-LABEL: @test_usub_vector_both_poison_splat(
452
- ; CHECK-NEXT: ret <2 x i8> undef
452
+ ; CHECK-NEXT: ret <2 x i8> poison
453
453
;
454
454
%x = call <2 x i8 > @llvm.usub.sat.v2i8 (<2 x i8 > poison, <2 x i8 > poison)
455
455
ret <2 x i8 > %x
456
456
}
457
457
458
458
define <2 x i8 > @test_ssub_vector_both_poison_splat () {
459
459
; CHECK-LABEL: @test_ssub_vector_both_poison_splat(
460
- ; CHECK-NEXT: ret <2 x i8> undef
460
+ ; CHECK-NEXT: ret <2 x i8> poison
461
461
;
462
462
%x = call <2 x i8 > @llvm.ssub.sat.v2i8 (<2 x i8 > poison, <2 x i8 > poison)
463
463
ret <2 x i8 > %x
464
464
}
465
465
466
466
define <2 x i8 > @test_uadd_vector_op2_poison_splat () {
467
467
; CHECK-LABEL: @test_uadd_vector_op2_poison_splat(
468
- ; CHECK-NEXT: ret <2 x i8> <i8 -1, i8 -1>
468
+ ; CHECK-NEXT: ret <2 x i8> poison
469
469
;
470
470
%x = call <2 x i8 > @llvm.uadd.sat.v2i8 (<2 x i8 > <i8 10 , i8 20 >, <2 x i8 > poison)
471
471
ret <2 x i8 > %x
472
472
}
473
473
474
474
define <2 x i8 > @test_sadd_vector_op1_poison_splat () {
475
475
; CHECK-LABEL: @test_sadd_vector_op1_poison_splat(
476
- ; CHECK-NEXT: ret <2 x i8> <i8 -1, i8 -1>
476
+ ; CHECK-NEXT: ret <2 x i8> poison
477
477
;
478
478
%x = call <2 x i8 > @llvm.sadd.sat.v2i8 (<2 x i8 > poison, <2 x i8 > <i8 10 , i8 20 >)
479
479
ret <2 x i8 > %x
480
480
}
481
481
482
482
define <2 x i8 > @test_usub_vector_op2_poison_splat () {
483
483
; CHECK-LABEL: @test_usub_vector_op2_poison_splat(
484
- ; CHECK-NEXT: ret <2 x i8> zeroinitializer
484
+ ; CHECK-NEXT: ret <2 x i8> poison
485
485
;
486
486
%x = call <2 x i8 > @llvm.usub.sat.v2i8 (<2 x i8 > <i8 10 , i8 20 >, <2 x i8 > poison)
487
487
ret <2 x i8 > %x
488
488
}
489
489
490
490
define <2 x i8 > @test_ssub_vector_op1_poison_splat () {
491
491
; CHECK-LABEL: @test_ssub_vector_op1_poison_splat(
492
- ; CHECK-NEXT: ret <2 x i8> zeroinitializer
492
+ ; CHECK-NEXT: ret <2 x i8> poison
493
493
;
494
494
%x = call <2 x i8 > @llvm.ssub.sat.v2i8 (<2 x i8 > poison, <2 x i8 > <i8 10 , i8 20 >)
495
495
ret <2 x i8 > %x
496
496
}
497
497
498
498
define <2 x i8 > @test_uadd_vector_op2_poison_mix1 () {
499
499
; CHECK-LABEL: @test_uadd_vector_op2_poison_mix1(
500
- ; CHECK-NEXT: ret <2 x i8> <i8 30, i8 undef >
500
+ ; CHECK-NEXT: ret <2 x i8> <i8 30, i8 poison >
501
501
;
502
502
%x = call <2 x i8 > @llvm.uadd.sat.v2i8 (<2 x i8 > <i8 10 , i8 poison>, <2 x i8 > <i8 20 , i8 poison>)
503
503
ret <2 x i8 > %x
504
504
}
505
505
506
506
define <2 x i8 > @test_uadd_vector_op2_poison_mix2 () {
507
507
; CHECK-LABEL: @test_uadd_vector_op2_poison_mix2(
508
- ; CHECK-NEXT: ret <2 x i8> <i8 -1, i8 -1>
508
+ ; CHECK-NEXT: ret <2 x i8> poison
509
509
;
510
510
%x = call <2 x i8 > @llvm.uadd.sat.v2i8 (<2 x i8 > <i8 10 , i8 poison>, <2 x i8 > <i8 poison, i8 20 >)
511
511
ret <2 x i8 > %x
512
512
}
513
513
514
514
define <2 x i8 > @test_sadd_vector_op1_poison_mix1 () {
515
515
; CHECK-LABEL: @test_sadd_vector_op1_poison_mix1(
516
- ; CHECK-NEXT: ret <2 x i8> <i8 undef , i8 30>
516
+ ; CHECK-NEXT: ret <2 x i8> <i8 poison , i8 30>
517
517
;
518
518
%x = call <2 x i8 > @llvm.sadd.sat.v2i8 (<2 x i8 > <i8 poison, i8 10 >, <2 x i8 > <i8 poison, i8 20 >)
519
519
ret <2 x i8 > %x
520
520
}
521
521
522
522
define <2 x i8 > @test_sadd_vector_op1_poison_mix2 () {
523
523
; CHECK-LABEL: @test_sadd_vector_op1_poison_mix2(
524
- ; CHECK-NEXT: ret <2 x i8> <i8 -1, i8 -1>
524
+ ; CHECK-NEXT: ret <2 x i8> poison
525
525
;
526
526
%x = call <2 x i8 > @llvm.sadd.sat.v2i8 (<2 x i8 > <i8 poison, i8 10 >, <2 x i8 > <i8 20 , i8 poison>)
527
527
ret <2 x i8 > %x
528
528
}
529
529
530
530
define <2 x i8 > @test_usub_vector_op2_poison_mix1 () {
531
531
; CHECK-LABEL: @test_usub_vector_op2_poison_mix1(
532
- ; CHECK-NEXT: ret <2 x i8> <i8 0, i8 undef >
532
+ ; CHECK-NEXT: ret <2 x i8> <i8 0, i8 poison >
533
533
;
534
534
%x = call <2 x i8 > @llvm.usub.sat.v2i8 (<2 x i8 > <i8 10 , i8 poison>, <2 x i8 > <i8 20 , i8 poison>)
535
535
ret <2 x i8 > %x
536
536
}
537
537
538
538
define <2 x i8 > @test_usub_vector_op2_poison_mix2 () {
539
539
; CHECK-LABEL: @test_usub_vector_op2_poison_mix2(
540
- ; CHECK-NEXT: ret <2 x i8> zeroinitializer
540
+ ; CHECK-NEXT: ret <2 x i8> poison
541
541
;
542
542
%x = call <2 x i8 > @llvm.usub.sat.v2i8 (<2 x i8 > <i8 10 , i8 poison>, <2 x i8 > <i8 poison, i8 20 >)
543
543
ret <2 x i8 > %x
544
544
}
545
545
546
546
define <2 x i8 > @test_ssub_vector_op1_poison_mix1 () {
547
547
; CHECK-LABEL: @test_ssub_vector_op1_poison_mix1(
548
- ; CHECK-NEXT: ret <2 x i8> <i8 undef , i8 -10>
548
+ ; CHECK-NEXT: ret <2 x i8> <i8 poison , i8 -10>
549
549
;
550
550
%x = call <2 x i8 > @llvm.ssub.sat.v2i8 (<2 x i8 > <i8 poison, i8 10 >, <2 x i8 > <i8 poison, i8 20 >)
551
551
ret <2 x i8 > %x
552
552
}
553
553
554
554
define <2 x i8 > @test_ssub_vector_op1_poison_mix2 () {
555
555
; CHECK-LABEL: @test_ssub_vector_op1_poison_mix2(
556
- ; CHECK-NEXT: ret <2 x i8> zeroinitializer
556
+ ; CHECK-NEXT: ret <2 x i8> poison
557
557
;
558
558
%x = call <2 x i8 > @llvm.ssub.sat.v2i8 (<2 x i8 > <i8 poison, i8 10 >, <2 x i8 > <i8 20 , i8 poison>)
559
559
ret <2 x i8 > %x
0 commit comments