1
; RUN: llc < %s -O0 -verify-machineinstrs -fast-isel-abort=1 -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 | FileCheck %s --check-prefix=ELF64
3
@a = global i8 1, align 1
4
@b = global i16 2, align 2
5
@c = global i32 4, align 4
7
define void @t1() nounwind uwtable ssp {
9
%1 = load i8, i8* @a, align 1
10
call void @foo1(i8 zeroext %1)
17
define void @t2() nounwind uwtable ssp {
19
%1 = load i16, i16* @b, align 2
20
call void @foo2(i16 zeroext %1)
27
define void @t2a() nounwind uwtable ssp {
29
%1 = load i32, i32* @c, align 4
30
call void @foo3(i32 zeroext %1)
37
declare void @foo1(i8 zeroext)
38
declare void @foo2(i16 zeroext)
39
declare void @foo3(i32 zeroext)
41
define i32 @t3() nounwind uwtable ssp {
43
%1 = load i8, i8* @a, align 1
44
%2 = zext i8 %1 to i32
50
define i32 @t4() nounwind uwtable ssp {
52
%1 = load i16, i16* @b, align 2
53
%2 = zext i16 %1 to i32
59
define i32 @t5() nounwind uwtable ssp {
61
%1 = load i16, i16* @b, align 2
62
%2 = sext i16 %1 to i32
68
define i32 @t6() nounwind uwtable ssp {
70
%1 = load i8, i8* @a, align 2
71
%2 = sext i8 %1 to i32
77
define i64 @t7() nounwind uwtable ssp {
79
%1 = load i8, i8* @a, align 1
80
%2 = zext i8 %1 to i64
86
define i64 @t8() nounwind uwtable ssp {
88
%1 = load i16, i16* @b, align 2
89
%2 = zext i16 %1 to i64
95
define i64 @t9() nounwind uwtable ssp {
97
%1 = load i16, i16* @b, align 2
98
%2 = sext i16 %1 to i64
104
define i64 @t10() nounwind uwtable ssp {
106
%1 = load i8, i8* @a, align 2
107
%2 = sext i8 %1 to i64
113
define i64 @t11() nounwind uwtable ssp {
115
%1 = load i32, i32* @c, align 4
116
%2 = zext i32 %1 to i64
122
define i64 @t12() nounwind uwtable ssp {
124
%1 = load i32, i32* @c, align 4
125
%2 = sext i32 %1 to i64