source: icGREP/icgrep-devel/llvm-3.8.0.src/test/CodeGen/ARM/space-directive.ll @ 5027

Last change on this file since 5027 was 5027, checked in by cameron, 3 years ago

Upgrade to llvm 3.8

File size: 477 bytes
Line 
1; RUN: llc -mtriple=armv7 -o - %s | FileCheck %s
2
3define i32 @test_space() minsize {
4; CHECK-LABEL: test_space:
5; CHECK: ldr {{r[0-9]+}}, [[CPENTRY:.?LCPI[0-9]+_[0-9]+]]
6; CHECK: b [[PAST_CP:.?LBB[0-9]+_[0-9]+]]
7
8; CHECK: [[CPENTRY]]:
9; CHECK-NEXT: 12345678
10
11; CHECK: [[PAST_CP]]:
12; CHECK: .zero 10000
13  %addr = inttoptr i32 12345678 to i32*
14  %val = load i32, i32* %addr
15  call i32 @llvm.arm.space(i32 10000, i32 undef)
16  ret i32 %val
17}
18
19declare i32 @llvm.arm.space(i32, i32)
Note: See TracBrowser for help on using the repository browser.