1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2; RUN: llc  -O0 -mtriple=mipsel-linux-gnu -global-isel  -verify-machineinstrs %s -o -| FileCheck %s -check-prefixes=MIPS32
3
4define i64 @zext(i32 %x) {
5; MIPS32-LABEL: zext:
6; MIPS32:       # %bb.0: # %entry
7; MIPS32-NEXT:    move $2, $4
8; MIPS32-NEXT:    ori $3, $zero, 0
9; MIPS32-NEXT:    jr $ra
10; MIPS32-NEXT:    nop
11entry:
12  %conv = zext i32 %x to i64
13  ret i64 %conv
14}
15
16define i64 @sext(i32 %x) {
17; MIPS32-LABEL: sext:
18; MIPS32:       # %bb.0: # %entry
19; MIPS32-NEXT:    move $2, $4
20; MIPS32-NEXT:    sra $3, $2, 31
21; MIPS32-NEXT:    jr $ra
22; MIPS32-NEXT:    nop
23entry:
24  %conv = sext i32 %x to i64
25  ret i64 %conv
26}
27