1 ; RUN: llc < %s -O0 -verify-machineinstrs -fast-isel-abort=1 -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 | FileCheck %s --check-prefix=PPC64
2 ; RUN: llc < %s -O0 -verify-machineinstrs -fast-isel-abort=1 -mtriple=powerpc64-ibm-aix-xcoff -mcpu=pwr7 | FileCheck %s --check-prefix=PPC64
6 define i32 @zext_8_32(i8 %a) nounwind {
9 ; PPC64: clrlwi {{[0-9]+}}, {{[0-9]+}}, 24
13 define i32 @zext_16_32(i16 %a) nounwind {
15 %r = zext i16 %a to i32
16 ; PPC64: clrlwi {{[0-9]+}}, {{[0-9]+}}, 16
20 define i64 @zext_8_64(i8 %a) nounwind {
22 %r = zext i8 %a to i64
23 ; PPC64: clrldi {{[0-9]+}}, {{[0-9]+}}, 56
27 define i64 @zext_16_64(i16 %a) nounwind {
29 %r = zext i16 %a to i64
30 ; PPC64: clrldi {{[0-9]+}}, {{[0-9]+}}, 48
34 define i64 @zext_32_64(i32 %a) nounwind {
36 %r = zext i32 %a to i64
37 ; PPC64: clrldi {{[0-9]+}}, {{[0-9]+}}, 32
43 define i32 @sext_8_32(i8 %a) nounwind {
45 %r = sext i8 %a to i32
50 define i32 @sext_16_32(i16 %a) nounwind {
52 %r = sext i16 %a to i32
57 define i64 @sext_8_64(i8 %a) nounwind {
59 %r = sext i8 %a to i64
64 define i64 @sext_16_64(i16 %a) nounwind {
66 %r = sext i16 %a to i64
71 define i64 @sext_32_64(i32 %a) nounwind {
73 %r = sext i32 %a to i64