xref: /llvm-project/llvm/test/CodeGen/X86/fake-use-vector2.ll (revision 9a58b12fe7bf54c9433ec89bae2a2d6cfe489e75)
1; RUN: llc -stop-after=finalize-isel -mtriple=x86_64-unknown-linux -filetype=asm -o - %s | FileCheck %s
2;
3; Make sure we can split vectors that are used as operands of FAKE_USE.
4
5; Generated from:
6;
7; typedef long __attribute__((ext_vector_type(8))) long8;
8; void test0() { long8 id208 {0, 1, 2, 3, 4, 5, 6, 7}; }
9
10; ModuleID = 't5.cpp'
11source_filename = "t5.cpp"
12
13
14; CHECK:     %0:vr256 = VMOV
15; CHECK:     %1:vr256 = VMOV
16; CHECK-DAG: FAKE_USE killed %1
17; CHECK-DAG: FAKE_USE killed %0
18; CHECK:     RET
19define void @_Z5test0v() local_unnamed_addr #0 {
20entry:
21  tail call void (...) @llvm.fake.use(<8 x i64> <i64 0, i64 1, i64 2, i64 3, i64 4, i64 5, i64 6, i64 7>) #1
22  ret void
23}
24
25declare void @llvm.fake.use(...)
26
27attributes #0 = { "target-cpu"="btver2" optdebug }
28