Revert 374373: [Codegen] Alter the default promotion for saturating adds and subs
[llvm-core.git] / test / CodeGen / ARM / space-directive.ll
blob24f0d0aadf602586752247d7f73471ab1cfaddaa
1 ; RUN: llc -mtriple=armv7 -o - %s | FileCheck %s
3 define 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]+]]
8 ; CHECK: [[CPENTRY]]:
9 ; CHECK-NEXT: 12345678
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
19 declare i32 @llvm.arm.space(i32, i32)