1 ; RUN: llc -march=x86-64 -mcpu=x86-64 < %s | FileCheck %s
3 ; Make sure the float conversion is folded away as it should be.
7 define i32 @foo(i8 %a) #0 {
8 %conv = uitofp i8 %a to float
9 %conv1 = fptosi float %conv to i32
16 define i32 @foo2(i8 %a) #0 {
17 %conv = sitofp i8 %a to float
18 %conv1 = fptosi float %conv to i32
25 define zeroext i8 @bar(i8 zeroext %a) #0 {
26 %conv = uitofp i8 %a to float
27 %conv1 = fptoui float %conv to i8
31 attributes #0 = { nounwind ssp uwtable "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }