File: regress-w29-reserved-with-fp.ll

package info (click to toggle)
llvm-toolchain-7 1%3A7.0.1-8
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 733,456 kB
  • sloc: cpp: 3,776,651; ansic: 633,271; asm: 350,301; python: 142,716; objc: 107,612; sh: 22,626; lisp: 11,056; perl: 7,999; pascal: 6,742; ml: 5,537; awk: 3,536; makefile: 2,557; cs: 2,027; xml: 841; ruby: 156
file content (37 lines) | stat: -rw-r--r-- 1,069 bytes parent folder | download | duplicates (10)
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
; RUN: llc -mtriple=aarch64-none-linux-gnu -disable-fp-elim < %s | FileCheck %s
@var = global i32 0

declare void @bar()

define void @test_w29_reserved() {
; CHECK-LABEL: test_w29_reserved:
; CHECK: add x29, sp, #{{[0-9]+}}

  %val1 = load volatile i32, i32* @var
  %val2 = load volatile i32, i32* @var
  %val3 = load volatile i32, i32* @var
  %val4 = load volatile i32, i32* @var
  %val5 = load volatile i32, i32* @var
  %val6 = load volatile i32, i32* @var
  %val7 = load volatile i32, i32* @var
  %val8 = load volatile i32, i32* @var
  %val9 = load volatile i32, i32* @var

; CHECK-NOT: ldr w29,

  ; Call to prevent fp-elim that occurs regardless in leaf functions.
  call void @bar()

  store volatile i32 %val1,  i32* @var
  store volatile i32 %val2,  i32* @var
  store volatile i32 %val3,  i32* @var
  store volatile i32 %val4,  i32* @var
  store volatile i32 %val5,  i32* @var
  store volatile i32 %val6,  i32* @var
  store volatile i32 %val7,  i32* @var
  store volatile i32 %val8,  i32* @var
  store volatile i32 %val9,  i32* @var

  ret void
; CHECK: ret
}