fix Issue 9304 - Unary minus operator doesn't work correctly with SIMD t... #1488

Merged
merged 1 commit into from Jan 15, 2013

Conversation

Projects
None yet
2 participants
Collaborator

donc commented Jan 15, 2013

worth including a test case? Just:

float4 foo9304(float4 a)
{
return -a;
}
void test9304()
{
auto x = foo9304([0,1,2,3]);
assert(x[0]==0);
assert(x[1]==-1);
}

Owner

WalterBright commented Jan 15, 2013

Yeah, I have that test case, but it exposes other problems that have nothing to do with the unary -.

Owner

WalterBright commented Jan 15, 2013

I'm going to pull this now, and add the test case in later when I resolve the other problems with the test case. This is so the commits are not confused with each other.

@WalterBright WalterBright added a commit that referenced this pull request Jan 15, 2013

@WalterBright WalterBright Merge pull request #1488 from WalterBright/b10
fix Issue 9304 - Unary minus operator doesn't work correctly with SIMD t...
065f986

@WalterBright WalterBright merged commit 065f986 into dlang:master Jan 15, 2013

WalterBright deleted the unknown repository branch Jan 15, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment