brintos

brintos / llvm-project-archived public Read only

0
0
Text · 457 B · 11014e9 Raw
18 lines · plain
1; RUN: llc -mtriple thumbv7-unknown-linux-android -filetype asm -o - %s | FileCheck %s2 3@a = protected constant <{ i32, i32 }> <{ i32 0, i32 0 }>4@b = protected alias i32, getelementptr(i32, ptr getelementptr inbounds (<{ i32, i32 }>, ptr @a, i32 0, i32 1), i32 -1)5 6declare void @f(ptr)7 8define void @g() {9entry:10  call void @f(ptr @b)11  ret void12}13 14; CHECK-LABEL: g:15; CHECK: movw [[REGISTER:r[0-9]+]], :lower16:b16; CHECK: movt [[REGISTER]], :upper16:b17 18