]> granicus.if.org Git - llvm/commit
Use getTargetConstant for BLENDI, and add a test to catch it.
authorSterling Augustine <saugustine@google.com>
Fri, 20 Sep 2019 02:29:16 +0000 (02:29 +0000)
committerSterling Augustine <saugustine@google.com>
Fri, 20 Sep 2019 02:29:16 +0000 (02:29 +0000)
commit6decfde0bb872002ed735c497d5dac6b777f0bcc
tree1b7b08a8d58a9e06b355b16a3c3692effbc7f5d5
parent35d3e1d86174749910c6c8dc40bc2cf10679be81
Use getTargetConstant for BLENDI, and add a test to catch it.

Summary: This fixes a crasher introduced by r372338.

Reviewers: echristo, arsenm

Subscribers: jvesely, wdng, nhaehnle, hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D67785

Tighten up the test case.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@372366 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/AMDGPU/GlobalISel/isel-blendi-gettargetconstant.ll [new file with mode: 0644]