Akira Hatanaka | 302fdec | 2011-09-13 20:00:35 +0000 | [diff] [blame] | 1 | ; DISABLED: llc < %s -mips-ssection-threshold=8 -march=mips -o %t0 |
| 2 | ; DISABLED: llc < %s -mips-ssection-threshold=0 -march=mips -o %t1 |
| 3 | ; DISABLED: grep {sdata} %t0 | count 1 |
| 4 | ; DISABLED: grep {sbss} %t0 | count 1 |
| 5 | ; DISABLED: grep {gp_rel} %t0 | count 2 |
| 6 | ; DISABLED: not grep {sdata} %t1 |
| 7 | ; DISABLED: not grep {sbss} %t1 |
| 8 | ; DISABLED: not grep {gp_rel} %t1 |
| 9 | ; DISABLED: grep {\%hi} %t1 | count 2 |
| 10 | ; DISABLED: grep {\%lo} %t1 | count 3 |
| 11 | ; RUN: false |
| 12 | +; XFAIL: * |
| 13 | |
Chris Lattner | b71b909 | 2009-08-13 06:28:06 +0000 | [diff] [blame] | 14 | |
| 15 | target datalayout = "e-p:32:32:32-i1:8:8-i8:8:32-i16:16:32-i32:32:32-i64:32:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64" |
Duncan Sands | cdd4f8c | 2010-08-30 10:48:29 +0000 | [diff] [blame] | 16 | target triple = "mipsallegrexel-unknown-psp-elf" |
Chris Lattner | b71b909 | 2009-08-13 06:28:06 +0000 | [diff] [blame] | 17 | |
| 18 | %struct.anon = type { i32, i32 } |
| 19 | @s0 = global [8 x i8] c"AAAAAAA\00", align 4 |
| 20 | @foo = global %struct.anon { i32 2, i32 3 } |
| 21 | @bar = global %struct.anon zeroinitializer |
| 22 | |
| 23 | define i8* @A0() nounwind { |
| 24 | entry: |
| 25 | ret i8* getelementptr ([8 x i8]* @s0, i32 0, i32 0) |
| 26 | } |
| 27 | |
| 28 | define i32 @A1() nounwind { |
| 29 | entry: |
| 30 | load i32* getelementptr (%struct.anon* @foo, i32 0, i32 0), align 8 |
| 31 | load i32* getelementptr (%struct.anon* @foo, i32 0, i32 1), align 4 |
| 32 | add i32 %1, %0 |
| 33 | ret i32 %2 |
| 34 | } |
| 35 | |