File: strqu.ll

package info (click to toggle)
llvm-toolchain-11 1%3A11.0.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 995,808 kB
  • sloc: cpp: 4,767,656; ansic: 760,916; asm: 477,436; python: 170,940; objc: 69,804; lisp: 29,914; sh: 23,855; f90: 18,173; pascal: 7,551; perl: 7,471; ml: 5,603; awk: 3,489; makefile: 2,573; xml: 915; cs: 573; fortran: 503; javascript: 452
file content (48 lines) | stat: -rw-r--r-- 1,766 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
; 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
; 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

define void @test_split_f(<4 x float> %val, <4 x float>* %addr) {
; 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
  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) {
; 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
  store <2 x double> %val, <2 x double>* %addr, align 8
  ret void
}

define void @test_split_128(fp128 %val, fp128* %addr) {
; CHECK-LABEL: test_split_128:
; CHECK:       // %bb.0:
; CHECK-NEXT:    str q0, [x0]
; CHECK-NEXT:    ret
  store fp128 %val, fp128* %addr, align 8
  ret void
}