1; RUN: llc -mtriple=armv4-none--eabi < %s | FileCheck %s --check-prefix=CHECK-LOLOMOV 2; RUN: llc -mtriple=armv4t-none--eabi < %s | FileCheck %s --check-prefix=CHECK-LOLOMOV 3; RUN: llc -mtriple=armv5-none--eabi < %s | FileCheck %s --check-prefix=CHECK-LOLOMOV 4; RUN: llc -mtriple=armv6-none--eabi < %s | FileCheck %s --check-prefix=CHECK-LOLOMOV 5; RUN: llc -mtriple=armv7-none--eabi < %s | FileCheck %s --check-prefix=CHECK-LOLOMOV 6; RUN: llc -mtriple=thumbv6-none--eabi < %s | FileCheck %s --check-prefix=CHECK-LOLOMOV 7; RUN: llc -mtriple=thumbv7-none--eabi < %s | FileCheck %s --check-prefix=CHECK-LOLOMOV 8; CHECK-LOLOMOV-LABEL: foo 9; CHECK-LOLOMOV: mov [[TMP:r[0-7]]], [[SRC1:r[01]]] 10; CHECK-LOLOMOV-NEXT: mov [[SRC1]], [[SRC2:r[01]]] 11; CHECK-LOLOMOV-NEXT: mov [[SRC2]], [[TMP]] 12; CHECK-LOLOMOV-LABEL: bar 13; CHECK-LOLOMOV-LABEL: fnend 14; 15; 'MOV lo, lo' in Thumb mode produces undefined results on pre-v6 hardware 16; RUN: llc -mtriple=thumbv4t-none--eabi < %s | FileCheck %s --check-prefix=CHECK-NOLOLOMOV 17; RUN: llc -mtriple=thumbv5-none--eabi < %s | FileCheck %s --check-prefix=CHECK-NOLOLOMOV 18; CHECK-NOLOLOMOV-LABEL: foo 19; CHECK-NOLOLOMOV: movs [[TMP:r[0-7]]], [[SRC1:r[01]]] 20; CHECK-NOLOLOMOV-NEXT: movs [[SRC1]], [[SRC2:r[01]]] 21; CHECK-NOLOLOMOV-NEXT: movs [[SRC2]], [[TMP]] 22; CHECK-NOLOLOMOV-LABEL: bar 23; CHECK-NOLOLOMOV-LABEL: fnend 24 25declare void @bar(i32, i32) 26 27define void @foo(i32 %a, i32 %b) { 28entry: 29 call void @bar(i32 %b, i32 %a); 30 ret void 31} 32 33