[XCore] Extend test to check positve offsets are folded into addresses.
[oota-llvm.git] / test / CodeGen / XCore / getid.ll
1 ; RUN: llc < %s -march=xcore | FileCheck %s
2 declare i32 @llvm.xcore.getid()
3
4 define i32 @test() {
5 ; CHECK: test:
6 ; CHECK: get r11, id
7 ; CHECK-NEXT: mov r0, r11
8         %result = call i32 @llvm.xcore.getid()
9         ret i32 %result
10 }