blob: fc8b2febc320dbc3e391e107c483d6633abc7b1e [file] [log] [blame]
Dan Gohmanfce288f2009-09-09 00:09:15 +00001; RUN: llc < %s -mtriple=arm-apple-darwin9 | FileCheck %s
Evan Chengc3ccc1a2008-12-06 02:00:55 +00002
3@x = external hidden global i32 ; <i32*> [#uses=1]
4@y = extern_weak hidden global i32 ; <i32*> [#uses=1]
5
6define i32 @t() nounwind readonly {
7entry:
Dan Gohman9f23dee2010-04-17 16:29:15 +00008; CHECK: LCPI0_0:
Evan Cheng63476a82009-09-03 07:04:02 +00009; CHECK-NEXT: .long _x
Dan Gohman9f23dee2010-04-17 16:29:15 +000010; CHECK: LCPI0_1:
Evan Cheng63476a82009-09-03 07:04:02 +000011; CHECK-NEXT: .long _y
12
Evan Chengc3ccc1a2008-12-06 02:00:55 +000013 %0 = load i32* @x, align 4 ; <i32> [#uses=1]
14 %1 = load i32* @y, align 4 ; <i32> [#uses=1]
15 %2 = add i32 %1, %0 ; <i32> [#uses=1]
16 ret i32 %2
17}