1 ; RUN: llc < %s -O0 -verify-machineinstrs -fast-isel-abort=1 -relocation-model=dynamic-no-pic -mtriple=armv7-apple-ios | FileCheck %s --check-prefix=ALL
2 ; RUN: llc < %s -O0 -verify-machineinstrs -fast-isel-abort=1 -relocation-model=dynamic-no-pic -mtriple=armv7-linux-gnueabi | FileCheck %s --check-prefix=ALL
4 ; FIXME Add tests for thumbv7, they currently fail MI verification because
5 ; of a mismatch in register classes in uses.
7 ; This test verifies that load/store instructions are properly generated,
8 ; and that they pass MI verification (wasn't the case until 2013-06-08).
10 @a = global i8 1, align 1
11 @b = global i16 2, align 2
12 @c = global i32 4, align 4
16 define i8 @t1() nounwind uwtable ssp {
20 %1 = load i8, i8* @a, align 1
25 define i16 @t2() nounwind uwtable ssp {
29 %1 = load i16, i16* @b, align 2
30 %2 = add nsw i16 %1, 1
34 define i32 @t3() nounwind uwtable ssp {
38 %1 = load i32, i32* @c, align 4
39 %2 = add nsw i32 %1, 1
45 define void @t4(i8 %v) nounwind uwtable ssp {
50 store i8 %1, i8* @a, align 1
54 define void @t5(i16 %v) nounwind uwtable ssp {
58 %1 = add nsw i16 %v, 1
59 store i16 %1, i16* @b, align 2
63 define void @t6(i32 %v) nounwind uwtable ssp {
67 %1 = add nsw i32 %v, 1
68 store i32 %1, i32* @c, align 4