1 ; RUN: not llc -mtriple=i386-unknown-linux-gnu -o - %s 2>&1 | FileCheck %s
3 ; CHECK: error: couldn't allocate input reg for constraint '{esp}'
4 define dso_local i64 @test_esp(i64 %in) local_unnamed_addr nounwind {
6 %0 = tail call i64 asm sideeffect "mov $1, $0", "=r,{esp},~{dirflag},~{fpsr},~{flags}"(i64 81985529216486895)
7 %conv = trunc i64 %0 to i32
8 %add = add nsw i32 %conv, 3
9 %conv1 = sext i32 %add to i64