forked from OSchip/llvm-project
589 lines
19 KiB
LLVM
589 lines
19 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
|
; RUN: llc -mtriple=thumbv8.1m.main-none-none-eabi -mattr=+mve -verify-machineinstrs %s -o - | FileCheck %s --check-prefix=CHECK --check-prefix=CHECKLE
|
|
; RUN: llc -mtriple=thumbv8.1m.main-none-none-eabi -mattr=+mve.fp -verify-machineinstrs %s -o - | FileCheck %s --check-prefix=CHECK --check-prefix=CHECKLE
|
|
; RUN: llc -mtriple=thumbebv8.1m.main-none-none-eabi -mattr=+mve.fp -verify-machineinstrs %s -o - | FileCheck %s --check-prefix=CHECK --check-prefix=CHECKBE
|
|
|
|
define arm_aapcs_vfpcc <16 x i8> @mov_int8_1() {
|
|
; CHECK-LABEL: mov_int8_1:
|
|
; CHECK: @ %bb.0: @ %entry
|
|
; CHECK-NEXT: vmov.i8 q0, #0x1
|
|
; CHECK-NEXT: bx lr
|
|
entry:
|
|
ret <16 x i8> <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1>
|
|
}
|
|
|
|
define arm_aapcs_vfpcc <16 x i8> @mov_int8_m1() {
|
|
; CHECK-LABEL: mov_int8_m1:
|
|
; CHECK: @ %bb.0: @ %entry
|
|
; CHECK-NEXT: vmov.i8 q0, #0xff
|
|
; CHECK-NEXT: bx lr
|
|
entry:
|
|
ret <16 x i8> <i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1>
|
|
}
|
|
|
|
define arm_aapcs_vfpcc <8 x i16> @mov_int16_1() {
|
|
; CHECK-LABEL: mov_int16_1:
|
|
; CHECK: @ %bb.0: @ %entry
|
|
; CHECK-NEXT: vmov.i16 q0, #0x1
|
|
; CHECK-NEXT: bx lr
|
|
entry:
|
|
ret <8 x i16> <i16 1, i16 1, i16 1, i16 1, i16 1, i16 1, i16 1, i16 1>
|
|
}
|
|
|
|
define arm_aapcs_vfpcc <8 x i16> @mov_int16_m1() {
|
|
; CHECK-LABEL: mov_int16_m1:
|
|
; CHECK: @ %bb.0: @ %entry
|
|
; CHECK-NEXT: vmov.i8 q0, #0xff
|
|
; CHECK-NEXT: bx lr
|
|
entry:
|
|
ret <8 x i16> <i16 -1, i16 -1, i16 -1, i16 -1, i16 -1, i16 -1, i16 -1, i16 -1>
|
|
}
|
|
|
|
define arm_aapcs_vfpcc <8 x i16> @mov_int16_256() {
|
|
; CHECK-LABEL: mov_int16_256:
|
|
; CHECK: @ %bb.0: @ %entry
|
|
; CHECK-NEXT: vmov.i16 q0, #0x100
|
|
; CHECK-NEXT: bx lr
|
|
entry:
|
|
ret <8 x i16> <i16 256, i16 256, i16 256, i16 256, i16 256, i16 256, i16 256, i16 256>
|
|
}
|
|
|
|
define arm_aapcs_vfpcc <8 x i16> @mov_int16_257() {
|
|
; CHECK-LABEL: mov_int16_257:
|
|
; CHECK: @ %bb.0: @ %entry
|
|
; CHECK-NEXT: vmov.i8 q0, #0x1
|
|
; CHECK-NEXT: bx lr
|
|
entry:
|
|
ret <8 x i16> <i16 257, i16 257, i16 257, i16 257, i16 257, i16 257, i16 257, i16 257>
|
|
}
|
|
|
|
define arm_aapcs_vfpcc <8 x i16> @mov_int16_258() {
|
|
; CHECKLE-LABEL: mov_int16_258:
|
|
; CHECKLE: @ %bb.0: @ %entry
|
|
; CHECKLE-NEXT: adr r0, .LCPI6_0
|
|
; CHECKLE-NEXT: vldrw.u32 q0, [r0]
|
|
; CHECKLE-NEXT: bx lr
|
|
; CHECKLE-NEXT: .p2align 4
|
|
; CHECKLE-NEXT: @ %bb.1:
|
|
; CHECKLE-NEXT: .LCPI6_0:
|
|
; CHECKLE-NEXT: .long 16908546 @ double 8.204306265173532E-304
|
|
; CHECKLE-NEXT: .long 16908546
|
|
; CHECKLE-NEXT: .long 16908546 @ double 8.204306265173532E-304
|
|
; CHECKLE-NEXT: .long 16908546
|
|
;
|
|
; CHECKBE-LABEL: mov_int16_258:
|
|
; CHECKBE: @ %bb.0: @ %entry
|
|
; CHECKBE-NEXT: adr r0, .LCPI6_0
|
|
; CHECKBE-NEXT: vldrb.u8 q1, [r0]
|
|
; CHECKBE-NEXT: vrev64.8 q0, q1
|
|
; CHECKBE-NEXT: bx lr
|
|
; CHECKBE-NEXT: .p2align 4
|
|
; CHECKBE-NEXT: @ %bb.1:
|
|
; CHECKBE-NEXT: .LCPI6_0:
|
|
; CHECKBE-NEXT: .long 16908546 @ double 8.204306265173532E-304
|
|
; CHECKBE-NEXT: .long 16908546
|
|
; CHECKBE-NEXT: .long 16908546 @ double 8.204306265173532E-304
|
|
; CHECKBE-NEXT: .long 16908546
|
|
entry:
|
|
ret <8 x i16> <i16 258, i16 258, i16 258, i16 258, i16 258, i16 258, i16 258, i16 258>
|
|
}
|
|
|
|
define arm_aapcs_vfpcc <4 x i32> @mov_int32_1() {
|
|
; CHECK-LABEL: mov_int32_1:
|
|
; CHECK: @ %bb.0: @ %entry
|
|
; CHECK-NEXT: vmov.i32 q0, #0x1
|
|
; CHECK-NEXT: bx lr
|
|
entry:
|
|
ret <4 x i32> <i32 1, i32 1, i32 1, i32 1>
|
|
}
|
|
|
|
define arm_aapcs_vfpcc <4 x i32> @mov_int32_256() {
|
|
; CHECK-LABEL: mov_int32_256:
|
|
; CHECK: @ %bb.0: @ %entry
|
|
; CHECK-NEXT: vmov.i32 q0, #0x100
|
|
; CHECK-NEXT: bx lr
|
|
entry:
|
|
ret <4 x i32> <i32 256, i32 256, i32 256, i32 256>
|
|
}
|
|
|
|
define arm_aapcs_vfpcc <4 x i32> @mov_int32_65536() {
|
|
; CHECK-LABEL: mov_int32_65536:
|
|
; CHECK: @ %bb.0: @ %entry
|
|
; CHECK-NEXT: vmov.i32 q0, #0x10000
|
|
; CHECK-NEXT: bx lr
|
|
entry:
|
|
ret <4 x i32> <i32 65536, i32 65536, i32 65536, i32 65536>
|
|
}
|
|
|
|
define arm_aapcs_vfpcc <4 x i32> @mov_int32_16777216() {
|
|
; CHECK-LABEL: mov_int32_16777216:
|
|
; CHECK: @ %bb.0: @ %entry
|
|
; CHECK-NEXT: vmov.i32 q0, #0x1000000
|
|
; CHECK-NEXT: bx lr
|
|
entry:
|
|
ret <4 x i32> <i32 16777216, i32 16777216, i32 16777216, i32 16777216>
|
|
}
|
|
|
|
define arm_aapcs_vfpcc <4 x i32> @mov_int32_16777217() {
|
|
; CHECKLE-LABEL: mov_int32_16777217:
|
|
; CHECKLE: @ %bb.0: @ %entry
|
|
; CHECKLE-NEXT: adr r0, .LCPI11_0
|
|
; CHECKLE-NEXT: vldrw.u32 q0, [r0]
|
|
; CHECKLE-NEXT: bx lr
|
|
; CHECKLE-NEXT: .p2align 4
|
|
; CHECKLE-NEXT: @ %bb.1:
|
|
; CHECKLE-NEXT: .LCPI11_0:
|
|
; CHECKLE-NEXT: .long 16777217 @ double 7.2911290000737531E-304
|
|
; CHECKLE-NEXT: .long 16777217
|
|
; CHECKLE-NEXT: .long 16777217 @ double 7.2911290000737531E-304
|
|
; CHECKLE-NEXT: .long 16777217
|
|
;
|
|
; CHECKBE-LABEL: mov_int32_16777217:
|
|
; CHECKBE: @ %bb.0: @ %entry
|
|
; CHECKBE-NEXT: adr r0, .LCPI11_0
|
|
; CHECKBE-NEXT: vldrb.u8 q1, [r0]
|
|
; CHECKBE-NEXT: vrev64.8 q0, q1
|
|
; CHECKBE-NEXT: bx lr
|
|
; CHECKBE-NEXT: .p2align 4
|
|
; CHECKBE-NEXT: @ %bb.1:
|
|
; CHECKBE-NEXT: .LCPI11_0:
|
|
; CHECKBE-NEXT: .long 16777217 @ double 7.2911290000737531E-304
|
|
; CHECKBE-NEXT: .long 16777217
|
|
; CHECKBE-NEXT: .long 16777217 @ double 7.2911290000737531E-304
|
|
; CHECKBE-NEXT: .long 16777217
|
|
entry:
|
|
ret <4 x i32> <i32 16777217, i32 16777217, i32 16777217, i32 16777217>
|
|
}
|
|
|
|
define arm_aapcs_vfpcc <4 x i32> @mov_int32_17919() {
|
|
; CHECK-LABEL: mov_int32_17919:
|
|
; CHECK: @ %bb.0: @ %entry
|
|
; CHECK-NEXT: vmov.i32 q0, #0x45ff
|
|
; CHECK-NEXT: bx lr
|
|
entry:
|
|
ret <4 x i32> <i32 17919, i32 17919, i32 17919, i32 17919>
|
|
}
|
|
|
|
define arm_aapcs_vfpcc <4 x i32> @mov_int32_4587519() {
|
|
; CHECK-LABEL: mov_int32_4587519:
|
|
; CHECK: @ %bb.0: @ %entry
|
|
; CHECK-NEXT: vmov.i32 q0, #0x45ffff
|
|
; CHECK-NEXT: bx lr
|
|
entry:
|
|
ret <4 x i32> <i32 4587519, i32 4587519, i32 4587519, i32 4587519>
|
|
}
|
|
|
|
define arm_aapcs_vfpcc <4 x i32> @mov_int32_m1() {
|
|
; CHECK-LABEL: mov_int32_m1:
|
|
; CHECK: @ %bb.0: @ %entry
|
|
; CHECK-NEXT: vmov.i8 q0, #0xff
|
|
; CHECK-NEXT: bx lr
|
|
entry:
|
|
ret <4 x i32> <i32 -1, i32 -1, i32 -1, i32 -1>
|
|
}
|
|
|
|
define arm_aapcs_vfpcc <4 x i32> @mov_int32_4294901760() {
|
|
; CHECK-LABEL: mov_int32_4294901760:
|
|
; CHECK: @ %bb.0: @ %entry
|
|
; CHECK-NEXT: vmvn.i32 q0, #0xffff
|
|
; CHECK-NEXT: bx lr
|
|
entry:
|
|
ret <4 x i32> <i32 4294901760, i32 4294901760, i32 4294901760, i32 4294901760>
|
|
}
|
|
|
|
define arm_aapcs_vfpcc <4 x i32> @mov_int32_4278190335() {
|
|
; CHECKLE-LABEL: mov_int32_4278190335:
|
|
; CHECKLE: @ %bb.0: @ %entry
|
|
; CHECKLE-NEXT: adr r0, .LCPI16_0
|
|
; CHECKLE-NEXT: vldrw.u32 q0, [r0]
|
|
; CHECKLE-NEXT: bx lr
|
|
; CHECKLE-NEXT: .p2align 4
|
|
; CHECKLE-NEXT: @ %bb.1:
|
|
; CHECKLE-NEXT: .LCPI16_0:
|
|
; CHECKLE-NEXT: .long 4278190335 @ double -5.4874634341155774E+303
|
|
; CHECKLE-NEXT: .long 4278190335
|
|
; CHECKLE-NEXT: .long 4278190335 @ double -5.4874634341155774E+303
|
|
; CHECKLE-NEXT: .long 4278190335
|
|
;
|
|
; CHECKBE-LABEL: mov_int32_4278190335:
|
|
; CHECKBE: @ %bb.0: @ %entry
|
|
; CHECKBE-NEXT: adr r0, .LCPI16_0
|
|
; CHECKBE-NEXT: vldrb.u8 q1, [r0]
|
|
; CHECKBE-NEXT: vrev64.8 q0, q1
|
|
; CHECKBE-NEXT: bx lr
|
|
; CHECKBE-NEXT: .p2align 4
|
|
; CHECKBE-NEXT: @ %bb.1:
|
|
; CHECKBE-NEXT: .LCPI16_0:
|
|
; CHECKBE-NEXT: .long 4278190335 @ double -5.4874634341155774E+303
|
|
; CHECKBE-NEXT: .long 4278190335
|
|
; CHECKBE-NEXT: .long 4278190335 @ double -5.4874634341155774E+303
|
|
; CHECKBE-NEXT: .long 4278190335
|
|
entry:
|
|
ret <4 x i32> <i32 4278190335, i32 4278190335, i32 4278190335, i32 4278190335>
|
|
}
|
|
|
|
define arm_aapcs_vfpcc <4 x i32> @mov_int32_4278255615() {
|
|
; CHECK-LABEL: mov_int32_4278255615:
|
|
; CHECK: @ %bb.0: @ %entry
|
|
; CHECK-NEXT: vmvn.i32 q0, #0xff0000
|
|
; CHECK-NEXT: bx lr
|
|
entry:
|
|
ret <4 x i32> <i32 4278255615, i32 4278255615, i32 4278255615, i32 4278255615>
|
|
}
|
|
|
|
define arm_aapcs_vfpcc <2 x i64> @mov_int64_1() {
|
|
; CHECKLE-LABEL: mov_int64_1:
|
|
; CHECKLE: @ %bb.0: @ %entry
|
|
; CHECKLE-NEXT: adr r0, .LCPI18_0
|
|
; CHECKLE-NEXT: vldrw.u32 q0, [r0]
|
|
; CHECKLE-NEXT: bx lr
|
|
; CHECKLE-NEXT: .p2align 4
|
|
; CHECKLE-NEXT: @ %bb.1:
|
|
; CHECKLE-NEXT: .LCPI18_0:
|
|
; CHECKLE-NEXT: .long 1 @ double 4.9406564584124654E-324
|
|
; CHECKLE-NEXT: .long 0
|
|
; CHECKLE-NEXT: .long 1 @ double 4.9406564584124654E-324
|
|
; CHECKLE-NEXT: .long 0
|
|
;
|
|
; CHECKBE-LABEL: mov_int64_1:
|
|
; CHECKBE: @ %bb.0: @ %entry
|
|
; CHECKBE-NEXT: adr r0, .LCPI18_0
|
|
; CHECKBE-NEXT: vldrb.u8 q1, [r0]
|
|
; CHECKBE-NEXT: vrev64.8 q0, q1
|
|
; CHECKBE-NEXT: bx lr
|
|
; CHECKBE-NEXT: .p2align 4
|
|
; CHECKBE-NEXT: @ %bb.1:
|
|
; CHECKBE-NEXT: .LCPI18_0:
|
|
; CHECKBE-NEXT: .long 0 @ double 4.9406564584124654E-324
|
|
; CHECKBE-NEXT: .long 1
|
|
; CHECKBE-NEXT: .long 0 @ double 4.9406564584124654E-324
|
|
; CHECKBE-NEXT: .long 1
|
|
entry:
|
|
ret <2 x i64> <i64 1, i64 1>
|
|
}
|
|
|
|
define arm_aapcs_vfpcc <2 x i64> @mov_int64_ff() {
|
|
; CHECK-LABEL: mov_int64_ff:
|
|
; CHECK: @ %bb.0: @ %entry
|
|
; CHECK-NEXT: vmov.i64 q0, #0xff
|
|
; CHECK-NEXT: bx lr
|
|
entry:
|
|
ret <2 x i64> < i64 255, i64 255 >
|
|
}
|
|
|
|
define arm_aapcs_vfpcc <2 x i64> @mov_int64_m1() {
|
|
; CHECK-LABEL: mov_int64_m1:
|
|
; CHECK: @ %bb.0: @ %entry
|
|
; CHECK-NEXT: vmov.i8 q0, #0xff
|
|
; CHECK-NEXT: bx lr
|
|
entry:
|
|
ret <2 x i64> < i64 -1, i64 -1 >
|
|
}
|
|
|
|
define arm_aapcs_vfpcc <2 x i64> @mov_int64_ff0000ff0000ffff() {
|
|
; CHECK-LABEL: mov_int64_ff0000ff0000ffff:
|
|
; CHECK: @ %bb.0: @ %entry
|
|
; CHECK-NEXT: vmov.i64 q0, #0xff0000ff0000ffff
|
|
; CHECK-NEXT: bx lr
|
|
entry:
|
|
ret <2 x i64> < i64 18374687574888349695, i64 18374687574888349695 >
|
|
}
|
|
|
|
define arm_aapcs_vfpcc <2 x i64> @mov_int64_f_0() {
|
|
; CHECKLE-LABEL: mov_int64_f_0:
|
|
; CHECKLE: @ %bb.0: @ %entry
|
|
; CHECKLE-NEXT: adr r0, .LCPI22_0
|
|
; CHECKLE-NEXT: vldrw.u32 q0, [r0]
|
|
; CHECKLE-NEXT: bx lr
|
|
; CHECKLE-NEXT: .p2align 4
|
|
; CHECKLE-NEXT: @ %bb.1:
|
|
; CHECKLE-NEXT: .LCPI22_0:
|
|
; CHECKLE-NEXT: .long 255 @ double 1.2598673968951787E-321
|
|
; CHECKLE-NEXT: .long 0
|
|
; CHECKLE-NEXT: .long 0 @ double 0
|
|
; CHECKLE-NEXT: .long 0
|
|
;
|
|
; CHECKBE-LABEL: mov_int64_f_0:
|
|
; CHECKBE: @ %bb.0: @ %entry
|
|
; CHECKBE-NEXT: adr r0, .LCPI22_0
|
|
; CHECKBE-NEXT: vldrb.u8 q1, [r0]
|
|
; CHECKBE-NEXT: vrev64.8 q0, q1
|
|
; CHECKBE-NEXT: bx lr
|
|
; CHECKBE-NEXT: .p2align 4
|
|
; CHECKBE-NEXT: @ %bb.1:
|
|
; CHECKBE-NEXT: .LCPI22_0:
|
|
; CHECKBE-NEXT: .long 0 @ double 1.2598673968951787E-321
|
|
; CHECKBE-NEXT: .long 255
|
|
; CHECKBE-NEXT: .long 0 @ double 0
|
|
; CHECKBE-NEXT: .long 0
|
|
entry:
|
|
ret <2 x i64> < i64 255, i64 0 >
|
|
}
|
|
|
|
define arm_aapcs_vfpcc <16 x i8> @mov_int64_0f000f0f() {
|
|
; CHECKLE-LABEL: mov_int64_0f000f0f:
|
|
; CHECKLE: @ %bb.0: @ %entry
|
|
; CHECKLE-NEXT: vmov.i64 q0, #0xff000000ff00ff
|
|
; CHECKLE-NEXT: bx lr
|
|
;
|
|
; CHECKBE-LABEL: mov_int64_0f000f0f:
|
|
; CHECKBE: @ %bb.0: @ %entry
|
|
; CHECKBE-NEXT: vmov.i64 q0, #0xff00ff000000ff00
|
|
; CHECKBE-NEXT: bx lr
|
|
entry:
|
|
ret <16 x i8> <i8 -1, i8 0, i8 -1, i8 0, i8 0, i8 0, i8 -1, i8 0, i8 -1, i8 0, i8 -1, i8 0, i8 0, i8 0, i8 -1, i8 0>
|
|
}
|
|
|
|
define arm_aapcs_vfpcc <8 x i16> @mov_int64_ff00ffff() {
|
|
; CHECKLE-LABEL: mov_int64_ff00ffff:
|
|
; CHECKLE: @ %bb.0: @ %entry
|
|
; CHECKLE-NEXT: vmov.i64 q0, #0xffffffff0000ffff
|
|
; CHECKLE-NEXT: bx lr
|
|
;
|
|
; CHECKBE-LABEL: mov_int64_ff00ffff:
|
|
; CHECKBE: @ %bb.0: @ %entry
|
|
; CHECKBE-NEXT: vmov.i64 q0, #0xffff0000ffffffff
|
|
; CHECKBE-NEXT: bx lr
|
|
entry:
|
|
ret <8 x i16> <i16 -1, i16 0, i16 -1, i16 -1, i16 -1, i16 0, i16 -1, i16 -1>
|
|
}
|
|
|
|
define arm_aapcs_vfpcc <16 x i8> @mov_int64_0f0f0f0f0f0f0f0f() {
|
|
; CHECKLE-LABEL: mov_int64_0f0f0f0f0f0f0f0f:
|
|
; CHECKLE: @ %bb.0: @ %entry
|
|
; CHECKLE-NEXT: vmov.i16 q0, #0xff
|
|
; CHECKLE-NEXT: bx lr
|
|
;
|
|
; CHECKBE-LABEL: mov_int64_0f0f0f0f0f0f0f0f:
|
|
; CHECKBE: @ %bb.0: @ %entry
|
|
; CHECKBE-NEXT: vmov.i16 q0, #0xff00
|
|
; CHECKBE-NEXT: bx lr
|
|
entry:
|
|
ret <16 x i8> <i8 -1, i8 0, i8 -1, i8 0, i8 -1, i8 0, i8 -1, i8 0, i8 -1, i8 0, i8 -1, i8 0, i8 -1, i8 0, i8 -1, i8 0>
|
|
}
|
|
|
|
define arm_aapcs_vfpcc <4 x float> @mov_float_1() {
|
|
; CHECKLE-LABEL: mov_float_1:
|
|
; CHECKLE: @ %bb.0: @ %entry
|
|
; CHECKLE-NEXT: adr r0, .LCPI26_0
|
|
; CHECKLE-NEXT: vldrw.u32 q0, [r0]
|
|
; CHECKLE-NEXT: bx lr
|
|
; CHECKLE-NEXT: .p2align 4
|
|
; CHECKLE-NEXT: @ %bb.1:
|
|
; CHECKLE-NEXT: .LCPI26_0:
|
|
; CHECKLE-NEXT: .long 1065353216 @ double 0.007812501848093234
|
|
; CHECKLE-NEXT: .long 1065353216
|
|
; CHECKLE-NEXT: .long 1065353216 @ double 0.007812501848093234
|
|
; CHECKLE-NEXT: .long 1065353216
|
|
;
|
|
; CHECKBE-LABEL: mov_float_1:
|
|
; CHECKBE: @ %bb.0: @ %entry
|
|
; CHECKBE-NEXT: adr r0, .LCPI26_0
|
|
; CHECKBE-NEXT: vldrb.u8 q1, [r0]
|
|
; CHECKBE-NEXT: vrev64.8 q0, q1
|
|
; CHECKBE-NEXT: bx lr
|
|
; CHECKBE-NEXT: .p2align 4
|
|
; CHECKBE-NEXT: @ %bb.1:
|
|
; CHECKBE-NEXT: .LCPI26_0:
|
|
; CHECKBE-NEXT: .long 1065353216 @ double 0.007812501848093234
|
|
; CHECKBE-NEXT: .long 1065353216
|
|
; CHECKBE-NEXT: .long 1065353216 @ double 0.007812501848093234
|
|
; CHECKBE-NEXT: .long 1065353216
|
|
entry:
|
|
ret <4 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>
|
|
}
|
|
|
|
define arm_aapcs_vfpcc <4 x float> @mov_float_m3() {
|
|
; CHECKLE-LABEL: mov_float_m3:
|
|
; CHECKLE: @ %bb.0: @ %entry
|
|
; CHECKLE-NEXT: adr r0, .LCPI27_0
|
|
; CHECKLE-NEXT: vldrw.u32 q0, [r0]
|
|
; CHECKLE-NEXT: bx lr
|
|
; CHECKLE-NEXT: .p2align 4
|
|
; CHECKLE-NEXT: @ %bb.1:
|
|
; CHECKLE-NEXT: .LCPI27_0:
|
|
; CHECKLE-NEXT: .long 3225419776 @ double -32.000022917985916
|
|
; CHECKLE-NEXT: .long 3225419776
|
|
; CHECKLE-NEXT: .long 3225419776 @ double -32.000022917985916
|
|
; CHECKLE-NEXT: .long 3225419776
|
|
;
|
|
; CHECKBE-LABEL: mov_float_m3:
|
|
; CHECKBE: @ %bb.0: @ %entry
|
|
; CHECKBE-NEXT: adr r0, .LCPI27_0
|
|
; CHECKBE-NEXT: vldrb.u8 q1, [r0]
|
|
; CHECKBE-NEXT: vrev64.8 q0, q1
|
|
; CHECKBE-NEXT: bx lr
|
|
; CHECKBE-NEXT: .p2align 4
|
|
; CHECKBE-NEXT: @ %bb.1:
|
|
; CHECKBE-NEXT: .LCPI27_0:
|
|
; CHECKBE-NEXT: .long 3225419776 @ double -32.000022917985916
|
|
; CHECKBE-NEXT: .long 3225419776
|
|
; CHECKBE-NEXT: .long 3225419776 @ double -32.000022917985916
|
|
; CHECKBE-NEXT: .long 3225419776
|
|
entry:
|
|
ret <4 x float> <float -3.000000e+00, float -3.000000e+00, float -3.000000e+00, float -3.000000e+00>
|
|
}
|
|
|
|
define arm_aapcs_vfpcc <8 x half> @mov_float16_1() {
|
|
; CHECK-LABEL: mov_float16_1:
|
|
; CHECK: @ %bb.0: @ %entry
|
|
; CHECK-NEXT: vmov.i16 q0, #0x3c00
|
|
; CHECK-NEXT: bx lr
|
|
|
|
entry:
|
|
ret <8 x half> <half 1.000000e+00, half 1.000000e+00, half 1.000000e+00, half 1.000000e+00, half 1.000000e+00, half 1.000000e+00, half 1.000000e+00, half 1.000000e+00>
|
|
}
|
|
|
|
define arm_aapcs_vfpcc <8 x half> @mov_float16_m3() {
|
|
; CHECK-LABEL: mov_float16_m3:
|
|
; CHECK: @ %bb.0: @ %entry
|
|
; CHECK-NEXT: vmov.i16 q0, #0xc200
|
|
; CHECK-NEXT: bx lr
|
|
|
|
entry:
|
|
ret <8 x half> <half -3.000000e+00, half -3.000000e+00, half -3.000000e+00, half -3.000000e+00, half -3.000000e+00, half -3.000000e+00, half -3.000000e+00, half -3.000000e+00>
|
|
}
|
|
|
|
define arm_aapcs_vfpcc <2 x double> @mov_double_1() {
|
|
; CHECKLE-LABEL: mov_double_1:
|
|
; CHECKLE: @ %bb.0: @ %entry
|
|
; CHECKLE-NEXT: adr r0, .LCPI30_0
|
|
; CHECKLE-NEXT: vldrw.u32 q0, [r0]
|
|
; CHECKLE-NEXT: bx lr
|
|
; CHECKLE-NEXT: .p2align 4
|
|
; CHECKLE-NEXT: @ %bb.1:
|
|
; CHECKLE-NEXT: .LCPI30_0:
|
|
; CHECKLE-NEXT: .long 0 @ double 1
|
|
; CHECKLE-NEXT: .long 1072693248
|
|
; CHECKLE-NEXT: .long 0 @ double 1
|
|
; CHECKLE-NEXT: .long 1072693248
|
|
;
|
|
; CHECKBE-LABEL: mov_double_1:
|
|
; CHECKBE: @ %bb.0: @ %entry
|
|
; CHECKBE-NEXT: adr r0, .LCPI30_0
|
|
; CHECKBE-NEXT: vldrb.u8 q1, [r0]
|
|
; CHECKBE-NEXT: vrev64.8 q0, q1
|
|
; CHECKBE-NEXT: bx lr
|
|
; CHECKBE-NEXT: .p2align 4
|
|
; CHECKBE-NEXT: @ %bb.1:
|
|
; CHECKBE-NEXT: .LCPI30_0:
|
|
; CHECKBE-NEXT: .long 1072693248 @ double 1
|
|
; CHECKBE-NEXT: .long 0
|
|
; CHECKBE-NEXT: .long 1072693248 @ double 1
|
|
; CHECKBE-NEXT: .long 0
|
|
entry:
|
|
ret <2 x double> <double 1.000000e+00, double 1.000000e+00>
|
|
}
|
|
|
|
define arm_aapcs_vfpcc <16 x i8> @test(<16 x i8> %i) {
|
|
; CHECKLE-LABEL: test:
|
|
; CHECKLE: @ %bb.0: @ %entry
|
|
; CHECKLE-NEXT: vmov.i64 q1, #0xff000000ff00ff
|
|
; CHECKLE-NEXT: vorr q0, q0, q1
|
|
; CHECKLE-NEXT: bx lr
|
|
;
|
|
; CHECKBE-LABEL: test:
|
|
; CHECKBE: @ %bb.0: @ %entry
|
|
; CHECKBE-NEXT: vmov.i64 q1, #0xff00ff000000ff00
|
|
; CHECKBE-NEXT: vrev64.8 q2, q1
|
|
; CHECKBE-NEXT: vrev64.8 q1, q0
|
|
; CHECKBE-NEXT: vorr q1, q1, q2
|
|
; CHECKBE-NEXT: vrev64.8 q0, q1
|
|
; CHECKBE-NEXT: bx lr
|
|
entry:
|
|
%o = or <16 x i8> %i, <i8 -1, i8 0, i8 -1, i8 0, i8 0, i8 0, i8 -1, i8 0, i8 -1, i8 0, i8 -1, i8 0, i8 0, i8 0, i8 -1, i8 0>
|
|
ret <16 x i8> %o
|
|
}
|
|
|
|
define arm_aapcs_vfpcc <8 x i16> @test2(<8 x i16> %i) {
|
|
; CHECKLE-LABEL: test2:
|
|
; CHECKLE: @ %bb.0: @ %entry
|
|
; CHECKLE-NEXT: vmov.i64 q1, #0xffffffff0000ffff
|
|
; CHECKLE-NEXT: vorr q0, q0, q1
|
|
; CHECKLE-NEXT: bx lr
|
|
;
|
|
; CHECKBE-LABEL: test2:
|
|
; CHECKBE: @ %bb.0: @ %entry
|
|
; CHECKBE-NEXT: vmov.i64 q1, #0xffff0000ffffffff
|
|
; CHECKBE-NEXT: vrev64.16 q2, q1
|
|
; CHECKBE-NEXT: vrev64.16 q1, q0
|
|
; CHECKBE-NEXT: vorr q1, q1, q2
|
|
; CHECKBE-NEXT: vrev64.16 q0, q1
|
|
; CHECKBE-NEXT: bx lr
|
|
entry:
|
|
%o = or <8 x i16> %i, <i16 -1, i16 0, i16 -1, i16 -1, i16 -1, i16 0, i16 -1, i16 -1>
|
|
ret <8 x i16> %o
|
|
}
|
|
|
|
define arm_aapcs_vfpcc <4 x i32> @i1and_vmov(<4 x i32> %a, <4 x i32> %b, i32 %c) {
|
|
; CHECKLE-LABEL: i1and_vmov:
|
|
; CHECKLE: @ %bb.0: @ %entry
|
|
; CHECKLE-NEXT: cmp r0, #0
|
|
; CHECKLE-NEXT: mov.w r1, #15
|
|
; CHECKLE-NEXT: cset r0, eq
|
|
; CHECKLE-NEXT: and r0, r0, #1
|
|
; CHECKLE-NEXT: rsbs r0, r0, #0
|
|
; CHECKLE-NEXT: ands r0, r1
|
|
; CHECKLE-NEXT: vmsr p0, r0
|
|
; CHECKLE-NEXT: vpsel q0, q0, q1
|
|
; CHECKLE-NEXT: bx lr
|
|
;
|
|
; CHECKBE-LABEL: i1and_vmov:
|
|
; CHECKBE: @ %bb.0: @ %entry
|
|
; CHECKBE-NEXT: cmp r0, #0
|
|
; CHECKBE-NEXT: mov.w r1, #15
|
|
; CHECKBE-NEXT: cset r0, eq
|
|
; CHECKBE-NEXT: vrev64.32 q2, q1
|
|
; CHECKBE-NEXT: and r0, r0, #1
|
|
; CHECKBE-NEXT: vrev64.32 q1, q0
|
|
; CHECKBE-NEXT: rsbs r0, r0, #0
|
|
; CHECKBE-NEXT: ands r0, r1
|
|
; CHECKBE-NEXT: vmsr p0, r0
|
|
; CHECKBE-NEXT: vpsel q1, q1, q2
|
|
; CHECKBE-NEXT: vrev64.32 q0, q1
|
|
; CHECKBE-NEXT: bx lr
|
|
entry:
|
|
%c1 = icmp eq i32 %c, zeroinitializer
|
|
%broadcast.splatinsert1967 = insertelement <4 x i1> undef, i1 %c1, i32 0
|
|
%broadcast.splat1968 = shufflevector <4 x i1> %broadcast.splatinsert1967, <4 x i1> undef, <4 x i32> zeroinitializer
|
|
%l699 = and <4 x i1> %broadcast.splat1968, <i1 true, i1 false, i1 false, i1 false>
|
|
%s = select <4 x i1> %l699, <4 x i32> %a, <4 x i32> %b
|
|
ret <4 x i32> %s
|
|
}
|
|
|
|
define arm_aapcs_vfpcc <4 x i32> @i1or_vmov(<4 x i32> %a, <4 x i32> %b, i32 %c) {
|
|
; CHECKLE-LABEL: i1or_vmov:
|
|
; CHECKLE: @ %bb.0: @ %entry
|
|
; CHECKLE-NEXT: cmp r0, #0
|
|
; CHECKLE-NEXT: mov.w r1, #15
|
|
; CHECKLE-NEXT: cset r0, eq
|
|
; CHECKLE-NEXT: and r0, r0, #1
|
|
; CHECKLE-NEXT: rsbs r0, r0, #0
|
|
; CHECKLE-NEXT: orrs r0, r1
|
|
; CHECKLE-NEXT: vmsr p0, r0
|
|
; CHECKLE-NEXT: vpsel q0, q0, q1
|
|
; CHECKLE-NEXT: bx lr
|
|
;
|
|
; CHECKBE-LABEL: i1or_vmov:
|
|
; CHECKBE: @ %bb.0: @ %entry
|
|
; CHECKBE-NEXT: cmp r0, #0
|
|
; CHECKBE-NEXT: mov.w r1, #15
|
|
; CHECKBE-NEXT: cset r0, eq
|
|
; CHECKBE-NEXT: vrev64.32 q2, q1
|
|
; CHECKBE-NEXT: and r0, r0, #1
|
|
; CHECKBE-NEXT: vrev64.32 q1, q0
|
|
; CHECKBE-NEXT: rsbs r0, r0, #0
|
|
; CHECKBE-NEXT: orrs r0, r1
|
|
; CHECKBE-NEXT: vmsr p0, r0
|
|
; CHECKBE-NEXT: vpsel q1, q1, q2
|
|
; CHECKBE-NEXT: vrev64.32 q0, q1
|
|
; CHECKBE-NEXT: bx lr
|
|
entry:
|
|
%c1 = icmp eq i32 %c, zeroinitializer
|
|
%broadcast.splatinsert1967 = insertelement <4 x i1> undef, i1 %c1, i32 0
|
|
%broadcast.splat1968 = shufflevector <4 x i1> %broadcast.splatinsert1967, <4 x i1> undef, <4 x i32> zeroinitializer
|
|
%l699 = or <4 x i1> %broadcast.splat1968, <i1 true, i1 false, i1 false, i1 false>
|
|
%s = select <4 x i1> %l699, <4 x i32> %a, <4 x i32> %b
|
|
ret <4 x i32> %s
|
|
}
|