1 ; RUN: llc < %s -O0 -verify-machineinstrs -fast-isel-abort=1 -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 | FileCheck %s --check-prefix=ELF64
5 define i32 @zext_8_32(i8 %a) nounwind {
8 ; ELF64: clrlwi {{[0-9]+}}, {{[0-9]+}}, 24
12 define i32 @zext_16_32(i16 %a) nounwind {
14 %r = zext i16 %a to i32
15 ; ELF64: clrlwi {{[0-9]+}}, {{[0-9]+}}, 16
19 define i64 @zext_8_64(i8 %a) nounwind {
21 %r = zext i8 %a to i64
22 ; ELF64: clrldi {{[0-9]+}}, {{[0-9]+}}, 56
26 define i64 @zext_16_64(i16 %a) nounwind {
28 %r = zext i16 %a to i64
29 ; ELF64: clrldi {{[0-9]+}}, {{[0-9]+}}, 48
33 define i64 @zext_32_64(i32 %a) nounwind {
35 %r = zext i32 %a to i64
36 ; ELF64: clrldi {{[0-9]+}}, {{[0-9]+}}, 32
42 define i32 @sext_8_32(i8 %a) nounwind {
44 %r = sext i8 %a to i32
49 define i32 @sext_16_32(i16 %a) nounwind {
51 %r = sext i16 %a to i32
56 define i64 @sext_8_64(i8 %a) nounwind {
58 %r = sext i8 %a to i64
63 define i64 @sext_16_64(i16 %a) nounwind {
65 %r = sext i16 %a to i64
70 define i64 @sext_32_64(i32 %a) nounwind {
72 %r = sext i32 %a to i64