[TTI] getTypeBasedIntrinsicInstrCost - add basic handling for strided load/store...
[llvm-project.git] / llvm / test / CodeGen / BPF / 32-bit-subreg-zext.ll
blobd6e5a1aad57a7f1eb6c873b46e589e3a27b83e6c
1 ; RUN: llc -O2 -mtriple=bpfel -mattr=+alu32 < %s | FileCheck %s
2 ; RUN: llc -O2 -mtriple=bpfel -mcpu=v3 < %s | FileCheck %s
3 ; RUN: llc -O2 -mtriple=bpfeb -mattr=+alu32 < %s | FileCheck %s
4 ; RUN: llc -O2 -mtriple=bpfeb -mcpu=v3 < %s | FileCheck %s
6 ; long zext(unsigned int a)
7 ; {
8 ;   long b = a;
9 ;   return b;
10 ; }
12 ; Function Attrs: norecurse nounwind
13 define dso_local i64 @zext(i32 %a) local_unnamed_addr #0 {
14 entry:
15   %conv = zext i32 %a to i64
16   ; CHECK-NOT: r[[#]] <<= 32
17   ; CHECK-NOT: r[[#]] >>= 32
18   ret i64 %conv
21 attributes #0 = { norecurse nounwind }