32 lines · plain
1; RUN: llc < %s -mtriple=mips -mcpu=mips32r2 -mattr=+micromips -relocation-model=pic | FileCheck %s2; RUN: llc < %s -mtriple=mips -mcpu=mips32r3 -mattr=+micromips -relocation-model=pic | FileCheck %s3; RUN: llc < %s -mtriple=mips -mcpu=mips32r6 -mattr=+micromips -relocation-model=pic | FileCheck %s4 5@us = global i16 0, align 26 7define i32 @lhfunc() {8entry:9; CHECK-LABEL: lhfunc10; CHECK: lh $[[REG1:[0-9]+]], 0(${{[0-9]+}})11 %0 = load i16, ptr @us, align 212 %conv = sext i16 %0 to i3213 ret i32 %conv14}15 16define i16 @lhfunc_atomic() {17entry:18; CHECK-LABEL: lhfunc_atomic19; CHECK: lh $[[REG1:[0-9]+]], 0(${{[0-9]+}})20 %0 = load atomic i16, ptr @us acquire, align 221 ret i16 %022}23 24define i32 @lhufunc() {25entry:26; CHECK-LABEL: lhufunc27; CHECK: lhu $[[REG1:[0-9]+]], 0(${{[0-9]+}})28 %0 = load i16, ptr @us, align 229 %conv = zext i16 %0 to i3230 ret i32 %conv31}32