22 lines
555 B
LLVM
22 lines
555 B
LLVM
|
; RUN: llc -O2 -march=bpfel -mattr=+alu32 < %s | FileCheck %s
|
||
|
; RUN: llc -O2 -march=bpfel -mcpu=v3 < %s | FileCheck %s
|
||
|
; RUN: llc -O2 -march=bpfeb -mattr=+alu32 < %s | FileCheck %s
|
||
|
; RUN: llc -O2 -march=bpfeb -mcpu=v3 < %s | FileCheck %s
|
||
|
;
|
||
|
; long zext(unsigned int a)
|
||
|
; {
|
||
|
; long b = a;
|
||
|
; return b;
|
||
|
; }
|
||
|
|
||
|
; Function Attrs: norecurse nounwind
|
||
|
define dso_local i64 @zext(i32 %a) local_unnamed_addr #0 {
|
||
|
entry:
|
||
|
%conv = zext i32 %a to i64
|
||
|
; CHECK-NOT: r[[#]] <<= 32
|
||
|
; CHECK-NOT: r[[#]] >>= 32
|
||
|
ret i64 %conv
|
||
|
}
|
||
|
|
||
|
attributes #0 = { norecurse nounwind }
|