Commit b9d71d93 authored by Clemens Hammacher's avatar Clemens Hammacher Committed by Commit Bot

[assembler][ia32] Replace UNREACHABLE by FATAL with message

This improves the error message if we accidentally call this method on
a CPU which does not support it.

R=mstarzinger@chromium.org

Bug: v8:6600
Change-Id: If67bf9e95ab0e71d832a833a70b6ba748b53296e
Reviewed-on: https://chromium-review.googlesource.com/1219631Reviewed-by: 's avatarMichael Starzinger <mstarzinger@chromium.org>
Commit-Queue: Clemens Hammacher <clemensh@chromium.org>
Cr-Commit-Position: refs/heads/master@{#55796}
parent 565c83f8
...@@ -1393,7 +1393,7 @@ void TurboAssembler::Psignb(XMMRegister dst, Operand src) { ...@@ -1393,7 +1393,7 @@ void TurboAssembler::Psignb(XMMRegister dst, Operand src) {
psignb(dst, src); psignb(dst, src);
return; return;
} }
UNREACHABLE(); FATAL("no AVX or SSE3 support");
} }
void TurboAssembler::Psignw(XMMRegister dst, Operand src) { void TurboAssembler::Psignw(XMMRegister dst, Operand src) {
...@@ -1407,7 +1407,7 @@ void TurboAssembler::Psignw(XMMRegister dst, Operand src) { ...@@ -1407,7 +1407,7 @@ void TurboAssembler::Psignw(XMMRegister dst, Operand src) {
psignw(dst, src); psignw(dst, src);
return; return;
} }
UNREACHABLE(); FATAL("no AVX or SSE3 support");
} }
void TurboAssembler::Psignd(XMMRegister dst, Operand src) { void TurboAssembler::Psignd(XMMRegister dst, Operand src) {
...@@ -1421,7 +1421,7 @@ void TurboAssembler::Psignd(XMMRegister dst, Operand src) { ...@@ -1421,7 +1421,7 @@ void TurboAssembler::Psignd(XMMRegister dst, Operand src) {
psignd(dst, src); psignd(dst, src);
return; return;
} }
UNREACHABLE(); FATAL("no AVX or SSE3 support");
} }
void TurboAssembler::Pshufb(XMMRegister dst, Operand src) { void TurboAssembler::Pshufb(XMMRegister dst, Operand src) {
...@@ -1435,7 +1435,7 @@ void TurboAssembler::Pshufb(XMMRegister dst, Operand src) { ...@@ -1435,7 +1435,7 @@ void TurboAssembler::Pshufb(XMMRegister dst, Operand src) {
pshufb(dst, src); pshufb(dst, src);
return; return;
} }
UNREACHABLE(); FATAL("no AVX or SSE3 support");
} }
void TurboAssembler::Pblendw(XMMRegister dst, Operand src, uint8_t imm8) { void TurboAssembler::Pblendw(XMMRegister dst, Operand src, uint8_t imm8) {
...@@ -1449,7 +1449,7 @@ void TurboAssembler::Pblendw(XMMRegister dst, Operand src, uint8_t imm8) { ...@@ -1449,7 +1449,7 @@ void TurboAssembler::Pblendw(XMMRegister dst, Operand src, uint8_t imm8) {
pblendw(dst, src, imm8); pblendw(dst, src, imm8);
return; return;
} }
UNREACHABLE(); FATAL("no AVX or SSE4.1 support");
} }
void TurboAssembler::Palignr(XMMRegister dst, Operand src, uint8_t imm8) { void TurboAssembler::Palignr(XMMRegister dst, Operand src, uint8_t imm8) {
...@@ -1463,7 +1463,7 @@ void TurboAssembler::Palignr(XMMRegister dst, Operand src, uint8_t imm8) { ...@@ -1463,7 +1463,7 @@ void TurboAssembler::Palignr(XMMRegister dst, Operand src, uint8_t imm8) {
palignr(dst, src, imm8); palignr(dst, src, imm8);
return; return;
} }
UNREACHABLE(); FATAL("no AVX or SSE3 support");
} }
void TurboAssembler::Pextrb(Register dst, XMMRegister src, int8_t imm8) { void TurboAssembler::Pextrb(Register dst, XMMRegister src, int8_t imm8) {
...@@ -1477,7 +1477,7 @@ void TurboAssembler::Pextrb(Register dst, XMMRegister src, int8_t imm8) { ...@@ -1477,7 +1477,7 @@ void TurboAssembler::Pextrb(Register dst, XMMRegister src, int8_t imm8) {
pextrb(dst, src, imm8); pextrb(dst, src, imm8);
return; return;
} }
UNREACHABLE(); FATAL("no AVX or SSE4.1 support");
} }
void TurboAssembler::Pextrw(Register dst, XMMRegister src, int8_t imm8) { void TurboAssembler::Pextrw(Register dst, XMMRegister src, int8_t imm8) {
...@@ -1491,7 +1491,7 @@ void TurboAssembler::Pextrw(Register dst, XMMRegister src, int8_t imm8) { ...@@ -1491,7 +1491,7 @@ void TurboAssembler::Pextrw(Register dst, XMMRegister src, int8_t imm8) {
pextrw(dst, src, imm8); pextrw(dst, src, imm8);
return; return;
} }
UNREACHABLE(); FATAL("no AVX or SSE4.1 support");
} }
void TurboAssembler::Pextrd(Register dst, XMMRegister src, int8_t imm8) { void TurboAssembler::Pextrd(Register dst, XMMRegister src, int8_t imm8) {
...@@ -1575,7 +1575,7 @@ void TurboAssembler::Popcnt(Register dst, Operand src) { ...@@ -1575,7 +1575,7 @@ void TurboAssembler::Popcnt(Register dst, Operand src) {
popcnt(dst, src); popcnt(dst, src);
return; return;
} }
UNREACHABLE(); FATAL("no POPCNT support");
} }
void MacroAssembler::LoadWeakValue(Register in_out, Label* target_if_cleared) { void MacroAssembler::LoadWeakValue(Register in_out, Label* target_if_cleared) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment