xref: /aosp_15_r20/external/llvm/test/CodeGen/X86/vec_set-8.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -mtriple=x86_64-unknown -mattr=+sse4.2 | FileCheck %s
3*9880d681SAndroid Build Coastguard Worker
4*9880d681SAndroid Build Coastguard Workerdefine <2 x i64> @test(i64 %i) nounwind  {
5*9880d681SAndroid Build Coastguard Worker; CHECK-LABEL: test:
6*9880d681SAndroid Build Coastguard Worker; CHECK:       # BB#0:
7*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT:    movd %rdi, %xmm0
8*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT:    retq
9*9880d681SAndroid Build Coastguard Worker  %tmp10 = insertelement <2 x i64> undef, i64 %i, i32 0
10*9880d681SAndroid Build Coastguard Worker  %tmp11 = insertelement <2 x i64> %tmp10, i64 0, i32 1
11*9880d681SAndroid Build Coastguard Worker  ret <2 x i64> %tmp11
12*9880d681SAndroid Build Coastguard Worker}
13