File tree Expand file tree Collapse file tree 2 files changed +40
-0
lines changed
Expand file tree Collapse file tree 2 files changed +40
-0
lines changed Original file line number Diff line number Diff line change 1+ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
2+ ; RUN: llc -mtriple h2blb -o - %s -global-isel=1 -global-isel-abort=1 -verify-machineinstrs | FileCheck %s
3+
4+ define i16 @extractVecEltLow (<2 x i16 > %a ) {
5+ ; CHECK-LABEL: extractVecEltLow:
6+ ; CHECK: # %bb.0:
7+ ; CHECK-NEXT: mov16 r1, r2
8+ ; CHECK-NEXT: ret
9+ %res = extractelement <2 x i16 > %a , i16 0
10+ ret i16 %res
11+ }
12+
13+ define i16 @extractVecEltHigh (<2 x i16 > %a ) {
14+ ; CHECK-LABEL: extractVecEltHigh:
15+ ; CHECK: # %bb.0:
16+ ; CHECK-NEXT: mov16 r1, r3
17+ ; CHECK-NEXT: ret
18+ %res = extractelement <2 x i16 > %a , i16 1
19+ ret i16 %res
20+ }
Original file line number Diff line number Diff line change 1+ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
2+ ; RUN: llc -mtriple h2blb -o - %s -fast-isel=0 -verify-machineinstrs | FileCheck %s
3+
4+ define i16 @extractVecEltLow (<2 x i16 > %a ) {
5+ ; CHECK-LABEL: extractVecEltLow:
6+ ; CHECK: # %bb.0:
7+ ; CHECK-NEXT: mov16 r1, r2
8+ ; CHECK-NEXT: ret
9+ %res = extractelement <2 x i16 > %a , i16 0
10+ ret i16 %res
11+ }
12+
13+ define i16 @extractVecEltHigh (<2 x i16 > %a ) {
14+ ; CHECK-LABEL: extractVecEltHigh:
15+ ; CHECK: # %bb.0:
16+ ; CHECK-NEXT: mov16 r1, r3
17+ ; CHECK-NEXT: ret
18+ %res = extractelement <2 x i16 > %a , i16 1
19+ ret i16 %res
20+ }
You can’t perform that action at this time.
0 commit comments