Home | History | Annotate | Download | only in AArch64
      1 # RUN: llc -mtriple=aarch64-none-linux-gnu -start-after branch-folder -stop-after branch-folder -o /dev/null %s | FileCheck %s
      2 
      3 --- |
      4 
      5   @var_i32 = global i32 42
      6   @var_i64 = global i64 0
      7 
      8   define void @sub_small() {
      9   entry:
     10     %val32 = load i32, i32* @var_i32
     11     %newval32 = sub i32 %val32, 4095
     12     store i32 %newval32, i32* @var_i32
     13     %val64 = load i64, i64* @var_i64
     14     %newval64 = sub i64 %val64, 52
     15     store i64 %newval64, i64* @var_i64
     16     ret void
     17   }
     18 
     19 ...
     20 ---
     21 name:            sub_small
     22 body: |
     23   bb.0.entry:
     24   ; CHECK:      %x8 = ADRP target-flags(aarch64-page) @var_i32
     25   ; CHECK-NEXT: %x9 = ADRP target-flags(aarch64-page) @var_i64
     26   ; CHECK-NEXT: %w10 = LDRWui %x8, target-flags(aarch64-pageoff, aarch64-nc) @var_i32
     27   ; CHECK-NEXT: %x11 = LDRXui %x9, target-flags(aarch64-pageoff, aarch64-got, aarch64-nc) @var_i64
     28   ; CHECK:      STRWui killed %w10, killed %x8, target-flags(aarch64-nc) @var_i32
     29   ; CHECK:      STRXui killed %x11, killed %x9, target-flags(aarch64-pageoff, aarch64-nc) @var_i64
     30     %x8 = ADRP target-flags(aarch64-page) @var_i32
     31     %x9 = ADRP target-flags(aarch64-page) @var_i64
     32     %w10 = LDRWui %x8, target-flags(aarch64-pageoff, aarch64-nc) @var_i32
     33     %x11 = LDRXui %x9, target-flags(aarch64-pageoff, aarch64-got, aarch64-nc) @var_i64
     34     %w10 = SUBWri killed %w10, 4095, 0
     35     %x11 = SUBXri killed %x11, 52, 0
     36     STRWui killed %w10, killed %x8, target-flags(aarch64-nc) @var_i32
     37     STRXui killed %x11, killed %x9, target-flags(aarch64-pageoff, aarch64-nc) @var_i64
     38     RET_ReallyLR
     39 ...
     40