34 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc < %s -mtriple=x86_64-unknown-linux-gnu | FileCheck %s3; RUN: llc < %s -mtriple=x86_64-unknown-linux-gnux32 | FileCheck %s4; RUN: not llc < %s -mtriple=i386-unknown-linux-gnu 2>&1 | FileCheck %s --check-prefix=ERROR5 6; For 32-bit we still error since __int128 isn't supported in the frontend.7; ERROR: error: couldn't allocate output register for constraint 'x'8 9define { i64, i64 } @foo(i64 %0, i64 %1) {10; CHECK-LABEL: foo:11; CHECK: # %bb.0:12; CHECK-NEXT: movq %rsi, %xmm013; CHECK-NEXT: movq %rdi, %xmm114; CHECK-NEXT: punpcklqdq {{.*#+}} xmm1 = xmm1[0],xmm0[0]15; CHECK-NEXT: #APP16; CHECK-NEXT: movdqa %xmm1, %xmm017; CHECK-NEXT: #NO_APP18; CHECK-NEXT: movq %xmm0, %rax19; CHECK-NEXT: punpckhqdq {{.*#+}} xmm0 = xmm0[1,1]20; CHECK-NEXT: movq %xmm0, %rdx21; CHECK-NEXT: retq22 %3 = zext i64 %1 to i12823 %4 = shl nuw i128 %3, 6424 %5 = zext i64 %0 to i12825 %6 = or i128 %4, %526 %7 = tail call i128 asm sideeffect "movdqa $1, $0", "=x,x,~{dirflag},~{fpsr},~{flags}"(i128 %6)27 %8 = trunc i128 %7 to i6428 %9 = lshr i128 %7, 6429 %10 = trunc i128 %9 to i6430 %11 = insertvalue { i64, i64 } undef, i64 %8, 031 %12 = insertvalue { i64, i64 } %11, i64 %10, 132 ret { i64, i64 } %1233}34