; CHECK-LABEL: v2si64_cmp:
; CHECK: # %bb.0:
; CHECK-NEXT: vcmpequw 2, 2, 3
+; CHECK-NEXT: addis 3, 2, .LCPI0_0@toc@ha
+; CHECK-NEXT: addi 3, 3, .LCPI0_0@toc@l
+; CHECK-NEXT: lvx 3, 0, 3
+; CHECK-NEXT: vperm 3, 2, 2, 3
+; CHECK-NEXT: xxland 34, 35, 34
; CHECK-NEXT: blr
;
; CHECK-BE-LABEL: v2si64_cmp:
; CHECK-BE: # %bb.0:
; CHECK-BE-NEXT: vcmpequw 2, 2, 3
+; CHECK-BE-NEXT: addis 3, 2, .LCPI0_0@toc@ha
+; CHECK-BE-NEXT: addi 3, 3, .LCPI0_0@toc@l
+; CHECK-BE-NEXT: lxvw4x 35, 0, 3
+; CHECK-BE-NEXT: vperm 3, 2, 2, 3
+; CHECK-BE-NEXT: xxland 34, 35, 34
; CHECK-BE-NEXT: blr
%cmp = icmp eq <2 x i64> %x, %y
%result = sext <2 x i1> %cmp to <2 x i64>
; PWR7-NEXT: std 3, -16(1)
; PWR7-NEXT: addi 3, 1, -16
; PWR7-NEXT: lxvw4x 0, 0, 3
+; PWR7-NEXT: addis 3, 2, .LCPI100_0@toc@ha
+; PWR7-NEXT: addi 3, 3, .LCPI100_0@toc@l
; PWR7-NEXT: xxland 34, 34, 0
; PWR7-NEXT: vcmpequw 2, 2, 3
+; PWR7-NEXT: lxvw4x 35, 0, 3
; PWR7-NEXT: xxlnor 34, 34, 34
+; PWR7-NEXT: vperm 3, 2, 2, 3
+; PWR7-NEXT: xxland 34, 35, 34
; PWR7-NEXT: blr
;
; PWR8-LABEL: ugt_1_v2i64:
; PWR7-NEXT: std 3, -16(1)
; PWR7-NEXT: addi 3, 1, -16
; PWR7-NEXT: lxvw4x 0, 0, 3
+; PWR7-NEXT: addis 3, 2, .LCPI101_0@toc@ha
+; PWR7-NEXT: addi 3, 3, .LCPI101_0@toc@l
; PWR7-NEXT: xxland 34, 34, 0
; PWR7-NEXT: vcmpequw 2, 2, 3
+; PWR7-NEXT: lxvw4x 35, 0, 3
+; PWR7-NEXT: vperm 3, 2, 2, 3
+; PWR7-NEXT: xxland 34, 35, 34
; PWR7-NEXT: blr
;
; PWR8-LABEL: ult_2_v2i64:
; CHECK-LABEL: test65:
; CHECK: # %bb.0:
; CHECK-NEXT: vcmpequw v2, v2, v3
+; CHECK-NEXT: addis r3, r2, .LCPI59_0@toc@ha
+; CHECK-NEXT: addi r3, r3, .LCPI59_0@toc@l
+; CHECK-NEXT: lxvw4x v3, 0, r3
+; CHECK-NEXT: vperm v3, v2, v2, v3
+; CHECK-NEXT: xxland v2, v3, v2
; CHECK-NEXT: blr
;
; CHECK-REG-LABEL: test65:
; CHECK-REG: # %bb.0:
; CHECK-REG-NEXT: vcmpequw v2, v2, v3
+; CHECK-REG-NEXT: addis r3, r2, .LCPI59_0@toc@ha
+; CHECK-REG-NEXT: addi r3, r3, .LCPI59_0@toc@l
+; CHECK-REG-NEXT: lxvw4x v3, 0, r3
+; CHECK-REG-NEXT: vperm v3, v2, v2, v3
+; CHECK-REG-NEXT: xxland v2, v3, v2
; CHECK-REG-NEXT: blr
;
; CHECK-FISL-LABEL: test65:
; CHECK-FISL: # %bb.0:
-; CHECK-FISL-NEXT: vcmpequw v2, v2, v3
+; CHECK-FISL-NEXT: vcmpequw v3, v2, v3
+; CHECK-FISL-NEXT: addis r3, r2, .LCPI59_0@toc@ha
+; CHECK-FISL-NEXT: addi r3, r3, .LCPI59_0@toc@l
+; CHECK-FISL-NEXT: lxvw4x v2, 0, r3
+; CHECK-FISL-NEXT: vperm v2, v3, v3, v2
+; CHECK-FISL-NEXT: xxland v2, v2, v3
; CHECK-FISL-NEXT: blr
;
; CHECK-LE-LABEL: test65:
; CHECK-LABEL: test66:
; CHECK: # %bb.0:
; CHECK-NEXT: vcmpequw v2, v2, v3
+; CHECK-NEXT: addis r3, r2, .LCPI60_0@toc@ha
+; CHECK-NEXT: addi r3, r3, .LCPI60_0@toc@l
+; CHECK-NEXT: lxvw4x v3, 0, r3
; CHECK-NEXT: xxlnor v2, v2, v2
+; CHECK-NEXT: vperm v3, v2, v2, v3
+; CHECK-NEXT: xxland v2, v3, v2
; CHECK-NEXT: blr
;
; CHECK-REG-LABEL: test66:
; CHECK-REG: # %bb.0:
; CHECK-REG-NEXT: vcmpequw v2, v2, v3
+; CHECK-REG-NEXT: addis r3, r2, .LCPI60_0@toc@ha
+; CHECK-REG-NEXT: addi r3, r3, .LCPI60_0@toc@l
+; CHECK-REG-NEXT: lxvw4x v3, 0, r3
; CHECK-REG-NEXT: xxlnor v2, v2, v2
+; CHECK-REG-NEXT: vperm v3, v2, v2, v3
+; CHECK-REG-NEXT: xxland v2, v3, v2
; CHECK-REG-NEXT: blr
;
; CHECK-FISL-LABEL: test66:
; CHECK-FISL: # %bb.0:
; CHECK-FISL-NEXT: vcmpequw v2, v2, v3
-; CHECK-FISL-NEXT: xxlnor v2, v2, v2
+; CHECK-FISL-NEXT: xxlnor v3, v2, v2
+; CHECK-FISL-NEXT: addis r3, r2, .LCPI60_0@toc@ha
+; CHECK-FISL-NEXT: addi r3, r3, .LCPI60_0@toc@l
+; CHECK-FISL-NEXT: lxvw4x v2, 0, r3
+; CHECK-FISL-NEXT: vperm v2, v3, v3, v2
+; CHECK-FISL-NEXT: xxland v2, v2, v3
; CHECK-FISL-NEXT: blr
;
; CHECK-LE-LABEL: test66: