brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.6 KiB · 34a15ba Raw
112 lines · plain
1# RUN: llc -mtriple=ve -verify-machineinstrs -run-pass peephole-opt -o - %s | FileCheck %s2 3---4## Ensure fold immediate as simm7 at rhs5#CHECK-LABEL: name: cmpsl_ir6#CHECK: %2:i64 = nsw CMPSLir 5, %07name:            cmpsl_ir8alignment:       169exposesReturnsTwice: false10legalized:       false11regBankSelected: false12selected:        false13failedISel:      false14tracksRegLiveness: true15hasWinCFI:       false16registers:17  - { id: 0, class: i64, preferred-register: '' }18  - { id: 1, class: i64, preferred-register: '' }19liveins:20  - { reg: '$sx0', virtual-reg: '%0' }21frameInfo:22  isFrameAddressTaken: false23  isReturnAddressTaken: false24  hasStackMap:     false25  hasPatchPoint:   false26  stackSize:       027  offsetAdjustment: 028  maxAlignment:    829  adjustsStack:    false30  hasCalls:        false31  stackProtector:  ''32  maxCallFrameSize: 429496729533  cvBytesOfCalleeSavedRegisters: 034  hasOpaqueSPAdjustment: false35  hasVAStart:      false36  hasMustTailInVarArgFunc: false37  localFrameSize:  038  savePoint:       []39  restorePoint:    []40fixedStack:      []41stack:           []42callSites:       []43debugValueSubstitutions: []44constants:       []45machineFunctionInfo: {}46body:             |47  bb.0:48    liveins: $sx049 50    %0:i64 = COPY $sx051    %1:i64 = ORim 5, 052    %2:i64 = nsw CMPSLrr %1, %053    $sx0 = COPY %254    RET implicit $sx10, implicit $sx055 56...57 58---59## Ensure fold immediate as mimm at rhs60#CHECK-LABEL: name: cmpsl_rm61#CHECK: %2:i64 = nsw CMPSLrm %0, 12062name:            cmpsl_rm63alignment:       1664exposesReturnsTwice: false65legalized:       false66regBankSelected: false67selected:        false68failedISel:      false69tracksRegLiveness: true70hasWinCFI:       false71registers:72  - { id: 0, class: i64, preferred-register: '' }73  - { id: 1, class: i64, preferred-register: '' }74liveins:75  - { reg: '$sx0', virtual-reg: '%0' }76frameInfo:77  isFrameAddressTaken: false78  isReturnAddressTaken: false79  hasStackMap:     false80  hasPatchPoint:   false81  stackSize:       082  offsetAdjustment: 083  maxAlignment:    884  adjustsStack:    false85  hasCalls:        false86  stackProtector:  ''87  maxCallFrameSize: 429496729588  cvBytesOfCalleeSavedRegisters: 089  hasOpaqueSPAdjustment: false90  hasVAStart:      false91  hasMustTailInVarArgFunc: false92  localFrameSize:  093  savePoint:       []94  restorePoint:    []95fixedStack:      []96stack:           []97callSites:       []98debugValueSubstitutions: []99constants:       []100machineFunctionInfo: {}101body:             |102  bb.0:103    liveins: $sx0104 105    %0:i64 = COPY $sx0106    %1:i64 = ORim 0, 120107    %2:i64 = nsw CMPSLrr %0, %1108    $sx0 = COPY %2109    RET implicit $sx10, implicit $sx0110 111...112