@@ -2146,6 +2146,8 @@ define i16 @test_umax_16(ptr nocapture %ptr, i16 signext %val) {
2146
2146
; MIPS32-NEXT: $BB6_1: # %entry
2147
2147
; MIPS32-NEXT: # =>This Inner Loop Header: Depth=1
2148
2148
; MIPS32-NEXT: ll $2, 0($6)
2149
+ ; MIPS32-NEXT: and $2, $2, $8
2150
+ ; MIPS32-NEXT: and $7, $7, $8
2149
2151
; MIPS32-NEXT: sltu $5, $2, $7
2150
2152
; MIPS32-NEXT: move $3, $2
2151
2153
; MIPS32-NEXT: movn $3, $7, $5
@@ -2186,6 +2188,8 @@ define i16 @test_umax_16(ptr nocapture %ptr, i16 signext %val) {
2186
2188
; MIPSEL-NEXT: $BB6_1: # %entry
2187
2189
; MIPSEL-NEXT: # =>This Inner Loop Header: Depth=1
2188
2190
; MIPSEL-NEXT: ll $2, 0($6)
2191
+ ; MIPSEL-NEXT: and $2, $2, $8
2192
+ ; MIPSEL-NEXT: and $7, $7, $8
2189
2193
; MIPSEL-NEXT: sltu $5, $2, $7
2190
2194
; MIPSEL-NEXT: move $3, $2
2191
2195
; MIPSEL-NEXT: movn $3, $7, $5
@@ -2225,6 +2229,8 @@ define i16 @test_umax_16(ptr nocapture %ptr, i16 signext %val) {
2225
2229
; MIPSELR6-NEXT: $BB6_1: # %entry
2226
2230
; MIPSELR6-NEXT: # =>This Inner Loop Header: Depth=1
2227
2231
; MIPSELR6-NEXT: ll $2, 0($6)
2232
+ ; MIPSELR6-NEXT: and $2, $2, $8
2233
+ ; MIPSELR6-NEXT: and $7, $7, $8
2228
2234
; MIPSELR6-NEXT: sltu $5, $2, $7
2229
2235
; MIPSELR6-NEXT: seleqz $3, $2, $5
2230
2236
; MIPSELR6-NEXT: selnez $5, $7, $5
@@ -2263,6 +2269,8 @@ define i16 @test_umax_16(ptr nocapture %ptr, i16 signext %val) {
2263
2269
; MMEL-NEXT: $BB6_1: # %entry
2264
2270
; MMEL-NEXT: # =>This Inner Loop Header: Depth=1
2265
2271
; MMEL-NEXT: ll $2, 0($6)
2272
+ ; MMEL-NEXT: and $2, $2, $8
2273
+ ; MMEL-NEXT: and $7, $7, $8
2266
2274
; MMEL-NEXT: sltu $5, $2, $7
2267
2275
; MMEL-NEXT: or $3, $2, $zero
2268
2276
; MMEL-NEXT: movn $3, $7, $5
@@ -2300,6 +2308,8 @@ define i16 @test_umax_16(ptr nocapture %ptr, i16 signext %val) {
2300
2308
; MMELR6-NEXT: $BB6_1: # %entry
2301
2309
; MMELR6-NEXT: # =>This Inner Loop Header: Depth=1
2302
2310
; MMELR6-NEXT: ll $2, 0($6)
2311
+ ; MMELR6-NEXT: and $2, $2, $8
2312
+ ; MMELR6-NEXT: and $7, $7, $8
2303
2313
; MMELR6-NEXT: sltu $5, $2, $7
2304
2314
; MMELR6-NEXT: seleqz $3, $2, $5
2305
2315
; MMELR6-NEXT: selnez $5, $7, $5
@@ -2417,6 +2427,8 @@ define i16 @test_umax_16(ptr nocapture %ptr, i16 signext %val) {
2417
2427
; MIPS64EL-NEXT: .LBB6_1: # %entry
2418
2428
; MIPS64EL-NEXT: # =>This Inner Loop Header: Depth=1
2419
2429
; MIPS64EL-NEXT: ll $2, 0($6)
2430
+ ; MIPS64EL-NEXT: and $2, $2, $8
2431
+ ; MIPS64EL-NEXT: and $7, $7, $8
2420
2432
; MIPS64EL-NEXT: sltu $5, $2, $7
2421
2433
; MIPS64EL-NEXT: move $3, $2
2422
2434
; MIPS64EL-NEXT: movn $3, $7, $5
@@ -2456,6 +2468,8 @@ define i16 @test_umax_16(ptr nocapture %ptr, i16 signext %val) {
2456
2468
; MIPS64ELR6-NEXT: .LBB6_1: # %entry
2457
2469
; MIPS64ELR6-NEXT: # =>This Inner Loop Header: Depth=1
2458
2470
; MIPS64ELR6-NEXT: ll $2, 0($6)
2471
+ ; MIPS64ELR6-NEXT: and $2, $2, $8
2472
+ ; MIPS64ELR6-NEXT: and $7, $7, $8
2459
2473
; MIPS64ELR6-NEXT: sltu $5, $2, $7
2460
2474
; MIPS64ELR6-NEXT: seleqz $3, $2, $5
2461
2475
; MIPS64ELR6-NEXT: selnez $5, $7, $5
@@ -2655,6 +2669,8 @@ define i16 @test_umin_16(ptr nocapture %ptr, i16 signext %val) {
2655
2669
; MIPS32-NEXT: $BB7_1: # %entry
2656
2670
; MIPS32-NEXT: # =>This Inner Loop Header: Depth=1
2657
2671
; MIPS32-NEXT: ll $2, 0($6)
2672
+ ; MIPS32-NEXT: and $2, $2, $8
2673
+ ; MIPS32-NEXT: and $7, $7, $8
2658
2674
; MIPS32-NEXT: sltu $5, $2, $7
2659
2675
; MIPS32-NEXT: move $3, $2
2660
2676
; MIPS32-NEXT: movz $3, $7, $5
@@ -2696,6 +2712,8 @@ define i16 @test_umin_16(ptr nocapture %ptr, i16 signext %val) {
2696
2712
; MIPSEL-NEXT: $BB7_1: # %entry
2697
2713
; MIPSEL-NEXT: # =>This Inner Loop Header: Depth=1
2698
2714
; MIPSEL-NEXT: ll $2, 0($6)
2715
+ ; MIPSEL-NEXT: and $2, $2, $8
2716
+ ; MIPSEL-NEXT: and $7, $7, $8
2699
2717
; MIPSEL-NEXT: sltu $5, $2, $7
2700
2718
; MIPSEL-NEXT: move $3, $2
2701
2719
; MIPSEL-NEXT: movz $3, $7, $5
@@ -2735,6 +2753,8 @@ define i16 @test_umin_16(ptr nocapture %ptr, i16 signext %val) {
2735
2753
; MIPSELR6-NEXT: $BB7_1: # %entry
2736
2754
; MIPSELR6-NEXT: # =>This Inner Loop Header: Depth=1
2737
2755
; MIPSELR6-NEXT: ll $2, 0($6)
2756
+ ; MIPSELR6-NEXT: and $2, $2, $8
2757
+ ; MIPSELR6-NEXT: and $7, $7, $8
2738
2758
; MIPSELR6-NEXT: sltu $5, $2, $7
2739
2759
; MIPSELR6-NEXT: selnez $3, $2, $5
2740
2760
; MIPSELR6-NEXT: seleqz $5, $7, $5
@@ -2773,6 +2793,8 @@ define i16 @test_umin_16(ptr nocapture %ptr, i16 signext %val) {
2773
2793
; MMEL-NEXT: $BB7_1: # %entry
2774
2794
; MMEL-NEXT: # =>This Inner Loop Header: Depth=1
2775
2795
; MMEL-NEXT: ll $2, 0($6)
2796
+ ; MMEL-NEXT: and $2, $2, $8
2797
+ ; MMEL-NEXT: and $7, $7, $8
2776
2798
; MMEL-NEXT: sltu $5, $2, $7
2777
2799
; MMEL-NEXT: or $3, $2, $zero
2778
2800
; MMEL-NEXT: movz $3, $7, $5
@@ -2810,6 +2832,8 @@ define i16 @test_umin_16(ptr nocapture %ptr, i16 signext %val) {
2810
2832
; MMELR6-NEXT: $BB7_1: # %entry
2811
2833
; MMELR6-NEXT: # =>This Inner Loop Header: Depth=1
2812
2834
; MMELR6-NEXT: ll $2, 0($6)
2835
+ ; MMELR6-NEXT: and $2, $2, $8
2836
+ ; MMELR6-NEXT: and $7, $7, $8
2813
2837
; MMELR6-NEXT: sltu $5, $2, $7
2814
2838
; MMELR6-NEXT: selnez $3, $2, $5
2815
2839
; MMELR6-NEXT: seleqz $5, $7, $5
@@ -2927,6 +2951,8 @@ define i16 @test_umin_16(ptr nocapture %ptr, i16 signext %val) {
2927
2951
; MIPS64EL-NEXT: .LBB7_1: # %entry
2928
2952
; MIPS64EL-NEXT: # =>This Inner Loop Header: Depth=1
2929
2953
; MIPS64EL-NEXT: ll $2, 0($6)
2954
+ ; MIPS64EL-NEXT: and $2, $2, $8
2955
+ ; MIPS64EL-NEXT: and $7, $7, $8
2930
2956
; MIPS64EL-NEXT: sltu $5, $2, $7
2931
2957
; MIPS64EL-NEXT: move $3, $2
2932
2958
; MIPS64EL-NEXT: movz $3, $7, $5
@@ -2966,6 +2992,8 @@ define i16 @test_umin_16(ptr nocapture %ptr, i16 signext %val) {
2966
2992
; MIPS64ELR6-NEXT: .LBB7_1: # %entry
2967
2993
; MIPS64ELR6-NEXT: # =>This Inner Loop Header: Depth=1
2968
2994
; MIPS64ELR6-NEXT: ll $2, 0($6)
2995
+ ; MIPS64ELR6-NEXT: and $2, $2, $8
2996
+ ; MIPS64ELR6-NEXT: and $7, $7, $8
2969
2997
; MIPS64ELR6-NEXT: sltu $5, $2, $7
2970
2998
; MIPS64ELR6-NEXT: selnez $3, $2, $5
2971
2999
; MIPS64ELR6-NEXT: seleqz $5, $7, $5
@@ -4244,6 +4272,8 @@ define i8 @test_umax_8(ptr nocapture %ptr, i8 signext %val) {
4244
4272
; MIPS32-NEXT: $BB10_1: # %entry
4245
4273
; MIPS32-NEXT: # =>This Inner Loop Header: Depth=1
4246
4274
; MIPS32-NEXT: ll $2, 0($6)
4275
+ ; MIPS32-NEXT: and $2, $2, $8
4276
+ ; MIPS32-NEXT: and $7, $7, $8
4247
4277
; MIPS32-NEXT: sltu $5, $2, $7
4248
4278
; MIPS32-NEXT: move $3, $2
4249
4279
; MIPS32-NEXT: movn $3, $7, $5
@@ -4284,6 +4314,8 @@ define i8 @test_umax_8(ptr nocapture %ptr, i8 signext %val) {
4284
4314
; MIPSEL-NEXT: $BB10_1: # %entry
4285
4315
; MIPSEL-NEXT: # =>This Inner Loop Header: Depth=1
4286
4316
; MIPSEL-NEXT: ll $2, 0($6)
4317
+ ; MIPSEL-NEXT: and $2, $2, $8
4318
+ ; MIPSEL-NEXT: and $7, $7, $8
4287
4319
; MIPSEL-NEXT: sltu $5, $2, $7
4288
4320
; MIPSEL-NEXT: move $3, $2
4289
4321
; MIPSEL-NEXT: movn $3, $7, $5
@@ -4323,6 +4355,8 @@ define i8 @test_umax_8(ptr nocapture %ptr, i8 signext %val) {
4323
4355
; MIPSELR6-NEXT: $BB10_1: # %entry
4324
4356
; MIPSELR6-NEXT: # =>This Inner Loop Header: Depth=1
4325
4357
; MIPSELR6-NEXT: ll $2, 0($6)
4358
+ ; MIPSELR6-NEXT: and $2, $2, $8
4359
+ ; MIPSELR6-NEXT: and $7, $7, $8
4326
4360
; MIPSELR6-NEXT: sltu $5, $2, $7
4327
4361
; MIPSELR6-NEXT: seleqz $3, $2, $5
4328
4362
; MIPSELR6-NEXT: selnez $5, $7, $5
@@ -4361,6 +4395,8 @@ define i8 @test_umax_8(ptr nocapture %ptr, i8 signext %val) {
4361
4395
; MMEL-NEXT: $BB10_1: # %entry
4362
4396
; MMEL-NEXT: # =>This Inner Loop Header: Depth=1
4363
4397
; MMEL-NEXT: ll $2, 0($6)
4398
+ ; MMEL-NEXT: and $2, $2, $8
4399
+ ; MMEL-NEXT: and $7, $7, $8
4364
4400
; MMEL-NEXT: sltu $5, $2, $7
4365
4401
; MMEL-NEXT: or $3, $2, $zero
4366
4402
; MMEL-NEXT: movn $3, $7, $5
@@ -4398,6 +4434,8 @@ define i8 @test_umax_8(ptr nocapture %ptr, i8 signext %val) {
4398
4434
; MMELR6-NEXT: $BB10_1: # %entry
4399
4435
; MMELR6-NEXT: # =>This Inner Loop Header: Depth=1
4400
4436
; MMELR6-NEXT: ll $2, 0($6)
4437
+ ; MMELR6-NEXT: and $2, $2, $8
4438
+ ; MMELR6-NEXT: and $7, $7, $8
4401
4439
; MMELR6-NEXT: sltu $5, $2, $7
4402
4440
; MMELR6-NEXT: seleqz $3, $2, $5
4403
4441
; MMELR6-NEXT: selnez $5, $7, $5
@@ -4515,6 +4553,8 @@ define i8 @test_umax_8(ptr nocapture %ptr, i8 signext %val) {
4515
4553
; MIPS64EL-NEXT: .LBB10_1: # %entry
4516
4554
; MIPS64EL-NEXT: # =>This Inner Loop Header: Depth=1
4517
4555
; MIPS64EL-NEXT: ll $2, 0($6)
4556
+ ; MIPS64EL-NEXT: and $2, $2, $8
4557
+ ; MIPS64EL-NEXT: and $7, $7, $8
4518
4558
; MIPS64EL-NEXT: sltu $5, $2, $7
4519
4559
; MIPS64EL-NEXT: move $3, $2
4520
4560
; MIPS64EL-NEXT: movn $3, $7, $5
@@ -4554,6 +4594,8 @@ define i8 @test_umax_8(ptr nocapture %ptr, i8 signext %val) {
4554
4594
; MIPS64ELR6-NEXT: .LBB10_1: # %entry
4555
4595
; MIPS64ELR6-NEXT: # =>This Inner Loop Header: Depth=1
4556
4596
; MIPS64ELR6-NEXT: ll $2, 0($6)
4597
+ ; MIPS64ELR6-NEXT: and $2, $2, $8
4598
+ ; MIPS64ELR6-NEXT: and $7, $7, $8
4557
4599
; MIPS64ELR6-NEXT: sltu $5, $2, $7
4558
4600
; MIPS64ELR6-NEXT: seleqz $3, $2, $5
4559
4601
; MIPS64ELR6-NEXT: selnez $5, $7, $5
@@ -4753,6 +4795,8 @@ define i8 @test_umin_8(ptr nocapture %ptr, i8 signext %val) {
4753
4795
; MIPS32-NEXT: $BB11_1: # %entry
4754
4796
; MIPS32-NEXT: # =>This Inner Loop Header: Depth=1
4755
4797
; MIPS32-NEXT: ll $2, 0($6)
4798
+ ; MIPS32-NEXT: and $2, $2, $8
4799
+ ; MIPS32-NEXT: and $7, $7, $8
4756
4800
; MIPS32-NEXT: sltu $5, $2, $7
4757
4801
; MIPS32-NEXT: move $3, $2
4758
4802
; MIPS32-NEXT: movz $3, $7, $5
@@ -4793,6 +4837,8 @@ define i8 @test_umin_8(ptr nocapture %ptr, i8 signext %val) {
4793
4837
; MIPSEL-NEXT: $BB11_1: # %entry
4794
4838
; MIPSEL-NEXT: # =>This Inner Loop Header: Depth=1
4795
4839
; MIPSEL-NEXT: ll $2, 0($6)
4840
+ ; MIPSEL-NEXT: and $2, $2, $8
4841
+ ; MIPSEL-NEXT: and $7, $7, $8
4796
4842
; MIPSEL-NEXT: sltu $5, $2, $7
4797
4843
; MIPSEL-NEXT: move $3, $2
4798
4844
; MIPSEL-NEXT: movz $3, $7, $5
@@ -4832,6 +4878,8 @@ define i8 @test_umin_8(ptr nocapture %ptr, i8 signext %val) {
4832
4878
; MIPSELR6-NEXT: $BB11_1: # %entry
4833
4879
; MIPSELR6-NEXT: # =>This Inner Loop Header: Depth=1
4834
4880
; MIPSELR6-NEXT: ll $2, 0($6)
4881
+ ; MIPSELR6-NEXT: and $2, $2, $8
4882
+ ; MIPSELR6-NEXT: and $7, $7, $8
4835
4883
; MIPSELR6-NEXT: sltu $5, $2, $7
4836
4884
; MIPSELR6-NEXT: selnez $3, $2, $5
4837
4885
; MIPSELR6-NEXT: seleqz $5, $7, $5
@@ -4870,6 +4918,8 @@ define i8 @test_umin_8(ptr nocapture %ptr, i8 signext %val) {
4870
4918
; MMEL-NEXT: $BB11_1: # %entry
4871
4919
; MMEL-NEXT: # =>This Inner Loop Header: Depth=1
4872
4920
; MMEL-NEXT: ll $2, 0($6)
4921
+ ; MMEL-NEXT: and $2, $2, $8
4922
+ ; MMEL-NEXT: and $7, $7, $8
4873
4923
; MMEL-NEXT: sltu $5, $2, $7
4874
4924
; MMEL-NEXT: or $3, $2, $zero
4875
4925
; MMEL-NEXT: movz $3, $7, $5
@@ -4907,6 +4957,8 @@ define i8 @test_umin_8(ptr nocapture %ptr, i8 signext %val) {
4907
4957
; MMELR6-NEXT: $BB11_1: # %entry
4908
4958
; MMELR6-NEXT: # =>This Inner Loop Header: Depth=1
4909
4959
; MMELR6-NEXT: ll $2, 0($6)
4960
+ ; MMELR6-NEXT: and $2, $2, $8
4961
+ ; MMELR6-NEXT: and $7, $7, $8
4910
4962
; MMELR6-NEXT: sltu $5, $2, $7
4911
4963
; MMELR6-NEXT: selnez $3, $2, $5
4912
4964
; MMELR6-NEXT: seleqz $5, $7, $5
@@ -5024,6 +5076,8 @@ define i8 @test_umin_8(ptr nocapture %ptr, i8 signext %val) {
5024
5076
; MIPS64EL-NEXT: .LBB11_1: # %entry
5025
5077
; MIPS64EL-NEXT: # =>This Inner Loop Header: Depth=1
5026
5078
; MIPS64EL-NEXT: ll $2, 0($6)
5079
+ ; MIPS64EL-NEXT: and $2, $2, $8
5080
+ ; MIPS64EL-NEXT: and $7, $7, $8
5027
5081
; MIPS64EL-NEXT: sltu $5, $2, $7
5028
5082
; MIPS64EL-NEXT: move $3, $2
5029
5083
; MIPS64EL-NEXT: movz $3, $7, $5
@@ -5063,6 +5117,8 @@ define i8 @test_umin_8(ptr nocapture %ptr, i8 signext %val) {
5063
5117
; MIPS64ELR6-NEXT: .LBB11_1: # %entry
5064
5118
; MIPS64ELR6-NEXT: # =>This Inner Loop Header: Depth=1
5065
5119
; MIPS64ELR6-NEXT: ll $2, 0($6)
5120
+ ; MIPS64ELR6-NEXT: and $2, $2, $8
5121
+ ; MIPS64ELR6-NEXT: and $7, $7, $8
5066
5122
; MIPS64ELR6-NEXT: sltu $5, $2, $7
5067
5123
; MIPS64ELR6-NEXT: selnez $3, $2, $5
5068
5124
; MIPS64ELR6-NEXT: seleqz $5, $7, $5
0 commit comments