1 # RUN: llc -mtriple=ve -verify-machineinstrs -run-pass peephole-opt -o - %s | FileCheck %s
4 ## Ensure fold immediate as simm7 at rhs
5 #CHECK-LABEL: name: cmpsl_ir
6 #CHECK: %2:i64 = nsw CMPSLir 5, %0
9 exposesReturnsTwice: false
11 regBankSelected: false
14 tracksRegLiveness: true
17 - { id: 0, class: i64, preferred-register: '' }
18 - { id: 1, class: i64, preferred-register: '' }
20 - { reg: '$sx0', virtual-reg: '%0' }
22 isFrameAddressTaken: false
23 isReturnAddressTaken: false
32 maxCallFrameSize: 4294967295
33 cvBytesOfCalleeSavedRegisters: 0
34 hasOpaqueSPAdjustment: false
36 hasMustTailInVarArgFunc: false
43 debugValueSubstitutions: []
45 machineFunctionInfo: {}
52 %2:i64 = nsw CMPSLrr %1, %0
54 RET implicit $sx10, implicit $sx0
59 ## Ensure fold immediate as mimm at rhs
60 #CHECK-LABEL: name: cmpsl_rm
61 #CHECK: %2:i64 = nsw CMPSLrm %0, 120
64 exposesReturnsTwice: false
66 regBankSelected: false
69 tracksRegLiveness: true
72 - { id: 0, class: i64, preferred-register: '' }
73 - { id: 1, class: i64, preferred-register: '' }
75 - { reg: '$sx0', virtual-reg: '%0' }
77 isFrameAddressTaken: false
78 isReturnAddressTaken: false
87 maxCallFrameSize: 4294967295
88 cvBytesOfCalleeSavedRegisters: 0
89 hasOpaqueSPAdjustment: false
91 hasMustTailInVarArgFunc: false
98 debugValueSubstitutions: []
100 machineFunctionInfo: {}
107 %2:i64 = nsw CMPSLrr %0, %1
109 RET implicit $sx10, implicit $sx0