2019-05-29 09:35:10 +08:00
|
|
|
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
2018-02-17 04:00:57 +08:00
|
|
|
; RUN: llc < %s -verify-machineinstrs -mtriple=aarch64-linux-gnu | FileCheck --check-prefixes=CHECK,NOSPLIT %s
|
|
|
|
; RUN: llc < %s -verify-machineinstrs -mtriple=aarch64_be-linux-gnu | FileCheck --check-prefixes=CHECK,NOSPLIT %s
|
2019-10-03 05:26:40 +08:00
|
|
|
; RUN: llc < %s -verify-machineinstrs -mtriple=aarch64-linux-gnu -mcpu=exynos-m3 | FileCheck --check-prefixes=CHECK,NOSPLIT %s
|
|
|
|
; RUN: llc < %s -verify-machineinstrs -mtriple=aarch64_be-linux-gnu -mcpu=exynos-m3 | FileCheck --check-prefixes=CHECK,NOSPLIT %s
|
2018-02-17 04:00:57 +08:00
|
|
|
|
|
|
|
define void @test_split_f(<4 x float> %val, <4 x float>* %addr) {
|
2019-05-29 09:35:10 +08:00
|
|
|
; NOSPLIT-LABEL: test_split_f:
|
|
|
|
; NOSPLIT: // %bb.0:
|
|
|
|
; NOSPLIT-NEXT: str q0, [x0]
|
|
|
|
; NOSPLIT-NEXT: ret
|
|
|
|
;
|
|
|
|
; SPLIT-LABEL: test_split_f:
|
|
|
|
; SPLIT: // %bb.0:
|
|
|
|
; SPLIT-NEXT: rev64 v0.4s, v0.4s
|
|
|
|
; SPLIT-NEXT: ext v0.16b, v0.16b, v0.16b, #8
|
|
|
|
; SPLIT-NEXT: st1 { v0.2s }, [x0]
|
|
|
|
; SPLIT-NEXT: ext v0.16b, v0.16b, v0.16b, #8
|
|
|
|
; SPLIT-NEXT: add x8, x0, #8 // =8
|
|
|
|
; SPLIT-NEXT: st1 { v0.2s }, [x8]
|
|
|
|
; SPLIT-NEXT: ret
|
2018-02-17 04:00:57 +08:00
|
|
|
store <4 x float> %val, <4 x float>* %addr, align 8
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
define void @test_split_d(<2 x double> %val, <2 x double>* %addr) {
|
2019-05-29 09:35:10 +08:00
|
|
|
; NOSPLIT-LABEL: test_split_d:
|
|
|
|
; NOSPLIT: // %bb.0:
|
|
|
|
; NOSPLIT-NEXT: str q0, [x0]
|
|
|
|
; NOSPLIT-NEXT: ret
|
|
|
|
;
|
|
|
|
; SPLIT-LABEL: test_split_d:
|
|
|
|
; SPLIT: // %bb.0:
|
|
|
|
; SPLIT-NEXT: ext v0.16b, v0.16b, v0.16b, #8
|
|
|
|
; SPLIT-NEXT: st1 { v0.2d }, [x0]
|
|
|
|
; SPLIT-NEXT: ret
|
2018-02-17 04:00:57 +08:00
|
|
|
store <2 x double> %val, <2 x double>* %addr, align 8
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
define void @test_split_128(fp128 %val, fp128* %addr) {
|
2019-05-29 09:35:10 +08:00
|
|
|
; CHECK-LABEL: test_split_128:
|
|
|
|
; CHECK: // %bb.0:
|
|
|
|
; CHECK-NEXT: str q0, [x0]
|
|
|
|
; CHECK-NEXT: ret
|
2018-02-17 04:00:57 +08:00
|
|
|
store fp128 %val, fp128* %addr, align 8
|
|
|
|
ret void
|
|
|
|
}
|