Diana Chen | ba0932c | 2012-05-29 11:26:35 +0800 | [diff] [blame] | 1 | ; RUN: cp %p/wrap_f.s %t.wrap_f.ll |
| 2 | ; RUN: cp %p/true_f.s %t.true_f.ll |
Luba Tang | 81925c6 | 2012-05-15 14:14:30 +0800 | [diff] [blame] | 3 | |
Luba Tang | 0a9af86 | 2013-08-28 19:33:20 +0800 | [diff] [blame] | 4 | ; RUN: %LLC -mtriple="arm-none-linux-gnueabi" -march=arm \ |
| 5 | ; RUN: -filetype=obj -relocation-model=pic %s -o %t.1.o |
| 6 | ; RUN: %LLC -mtriple="arm-none-linux-gnueabi" -march=arm \ |
| 7 | ; RUN: -filetype=obj -relocation-model=pic %t.wrap_f.ll -o %t.2.o |
| 8 | ; RUN: %LLC -mtriple="arm-none-linux-gnueabi" -march=arm \ |
| 9 | ; RUN: -filetype=obj -relocation-model=pic %t.true_f.ll -o %t.3.o |
Luba Tang | 81925c6 | 2012-05-15 14:14:30 +0800 | [diff] [blame] | 10 | ; RUN: %MCLinker -mtriple="arm-none-linux-gnueabi" -march=arm \ |
Pete Chou | 350e22f | 2014-04-28 20:15:52 +0800 | [diff] [blame] | 11 | ; RUN: %t.1.o %t.2.o %t.3.o -o %t.4.o --wrap f -pie |
Luba Tang | 1f6dbf1 | 2012-06-25 15:05:46 +0800 | [diff] [blame] | 12 | |
Luba Tang | 500490e | 2012-06-27 12:48:54 +0800 | [diff] [blame] | 13 | ; RUN: rm %t.1.o %t.2.o %t.3.o %t.4.o |
Luba Tang | 1f6dbf1 | 2012-06-25 15:05:46 +0800 | [diff] [blame] | 14 | ; RUN: rm %t.wrap_f.ll |
| 15 | ; RUN: rm %t.true_f.ll |
| 16 | |
Luba Tang | 81925c6 | 2012-05-15 14:14:30 +0800 | [diff] [blame] | 17 | target triple = "arm-none-linux-gnueabi" |
| 18 | |
| 19 | define i8* @g(i32 %c) nounwind uwtable ssp { |
| 20 | entry: |
| 21 | %c.addr = alloca i32, align 4 |
| 22 | store i32 %c, i32* %c.addr, align 4 |
| 23 | %0 = load i32* %c.addr, align 4 |
| 24 | %call = call i8* @f(i32 %0) |
| 25 | ret i8* %call |
| 26 | } |
| 27 | |
| 28 | declare i8* @f(i32) |