1 # RUN: llc -verify-machineinstrs -x mir -filetype=obj < %s -o %t.o
2 # RUN: llvm-objdump -dr %t.o | FileCheck %s
11 ; ModuleID = '<stdin>'
12 source_filename = "<stdin>"
13 target datalayout = "E-m:a-Fi64-i64:64-n32:64-S128-v256:256:256-v512:512:512"
14 target triple = "powerpc64-ibm-aix"
16 @x = local_unnamed_addr global i32 218114560, align 4 #0
17 @y = external local_unnamed_addr global i32, align 4 #0
19 define signext range(i32 0, 256) i32 @read_x() {
21 %0 = load i32, ptr @x, align 4
23 %and = and i32 %shr, 255
27 define signext range(i32 0, 256) i32 @read_y() {
29 %0 = load i32, ptr @y, align 4
30 %shr = lshr i32 %0, 16
31 %and = and i32 %shr, 255
35 attributes #0 = { "toc-data" }
41 tracksRegLiveness: true
43 - { id: 0, class: g8rc }
46 machineFunctionInfo: {}
49 %0:g8rc = LBZ8 @x + 2, $x2 :: (dereferenceable load (s8) from @x + 2, align 2, basealign 4)
51 BLR8 implicit $lr8, implicit $rm, implicit $x3
57 tracksRegLiveness: true
59 - { id: 0, class: g8rc }
62 machineFunctionInfo: {}
65 %0:g8rc = LBZ8 @y + 1, $x2 :: (dereferenceable load (s8) from @y + 1, basealign 4)
67 BLR8 implicit $lr8, implicit $rm, implicit $x3