Skip to content

Commit

Permalink
Fix translation of OpLogicalNot
Browse files Browse the repository at this point in the history
  • Loading branch information
StuartDBrady authored and svenvh committed Aug 13, 2019
1 parent 9977928 commit 0b26dd3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 2 additions & 1 deletion lib/SPIRV/SPIRVReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1744,7 +1744,8 @@ Value *SPIRVToLLVM::transValueWithoutDecoration(SPIRVValue *BV, Function *F,
BV->getName(), BB));
}

case OpNot: {
case OpNot:
case OpLogicalNot: {
SPIRVUnary *BC = static_cast<SPIRVUnary *>(BV);
return mapValue(
BV, BinaryOperator::CreateNot(transValue(BC->getOperand(0), F, BB),
Expand Down
2 changes: 0 additions & 2 deletions test/OpLogicalNot.spvasm
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
; REQUIRES: spirv-as
; TODO: OpLogicalNot cannot currently be translated
; XFAIL: *
; RUN: spirv-as --target-env spv1.0 -o %t.spv %s
; RUN: llvm-spirv -r -o - %t.spv | llvm-dis | FileCheck %s
OpCapability Addresses
Expand Down

0 comments on commit 0b26dd3

Please sign in to comment.